Form variables

Hi all,

Is there any way to collect values that are being input as it happens and pass it on to another field in the same form? So, for example, if I had a drop down selected a value the value would be stored in a variable for later use in the form… I have tried doing this using $_POST where the forms method was post but nothing happens.

Thanks

puzzled

Thanks. I’m not really that good with js but will work on it.

Form field values will be past to the receiving PHP script when the form is sent.
If you want to use values inserted in the form while the user is filling the form (before sending it), then you’ll have to use javascript. You might want to take a look at AJAX as well if you need to do some database access for example.

Just remember that not everyone has JavaScript and so your form will still need to work without it.