Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. TobyWallis

    modifying form-field-name with a function parameter

    Hi Dan - yes, I saw that thanks - I just don't understand the rationale behind it or why it happens! ===Toby===
  2. TobyWallis

    modifying form-field-name with a function parameter

    Dan - thanks, that sorted it! Great. I'm not quite clear what the problem was, though... Thanks again everybody for your assistance ===Toby===
  3. TobyWallis

    modifying form-field-name with a function parameter

    Sorry, Dan. Yes, the page loads and the input is via a form: <body> <form action="" method="post" name="Form1"> <p> <input name="first" type="text"> </p> <p> <input name="second" type="text"> </p> <p> <input name="third" type="textfield"> </p> <p> <input type="submit" name="Submit"...
  4. TobyWallis

    modifying form-field-name with a function parameter

    Thanks for the pointers, DaButcher, but it still doesn't work. I used: <script language="JavaScript"> <!-- function myFunction1(a1,a2,a3) { b1=a1.value; b2=a2.value; b3=a3.value; document.write('FROM myFunction1 PARAMETERS:<br>b1='+b1+'<br>b2='+b2+'<br>b3='+b3+'</p>'); myFunction2(b1,b2,b3); }...
  5. TobyWallis

    modifying form-field-name with a function parameter

    Hi. I tried both ways and still have problems: I tried: function myFunction1(a1,a2,a3) { //b1=a1.value; //b2=a2.value; //b3=a3.value; document.write('FROM myFunction1 PARAMETERS:<br>a1='+a1+'<br>a2='+a2+'<br>a3='+a3); myFunction2(a1,a2,a3); } function myFunction2(a1,a2,a3) { x1=a1; x2=a2...
  6. TobyWallis

    modifying form-field-name with a function parameter

    I think the problem is more basic, to do with how I'm calling one function within another. I tried the following script and got "Undefined" in the second function. Am I being really stupid?? <script language="JavaScript"> <!-- function myFunction1(a1,a2,a3) { b1=a1.value; b2=a2.value...
  7. TobyWallis

    modifying form-field-name with a function parameter

    Thanks, Dan, but I still get an error.
  8. TobyWallis

    modifying form-field-name with a function parameter

    HI. I'm trying to do something similar but also having problems. I'm creating a form with dynamic fieldnames from a MySQL database. So the forms are named with a variable element $i using PHP as follows: Price$i, Quantity$i and Total$i. I then pass these parameters to a calculate function as...

Part and Inventory Search

Back
Top