Click to See Complete Forum and Search --> : Form variables


ozz
03-25-2003, 11:29 AM
I have 4 text input fields in which the user types in 4 amounts. I also have a variable called "totalsum" which will give me the total sum of the inputed figures. While this works ok, i would like the total to be sent via a hidden form field in a form, but im not sure what to put in the value field.

<INPUT TYPE=HIDDEN NAME="total" VALUE="?">


Thanks in advance...

khalidali63
03-25-2003, 11:39 AM
in your function where you get the totals calculated.

do this

document.formName.hiddenFieldname.value = totalsum;

Cheers

Khalid

ozz
03-25-2003, 11:49 AM
As usual Khalid comes to the rescue and sorts it out, would be really stuck without you my friend. Thankyou. :p