Click to See Complete Forum and Search --> : Accessing variables set in JS


jamesct
09-06-2004, 08:18 AM
I use JS to set a select box. I set each option with a distinct name and value, and then set one of the options to 'selected'.

However when I post the form, the command
$_POST["my_var"]
in the preceeding page does not pick up any value. I.e. it's empty.

I have checked that the value is being set by the JS, it is. I have also checked that the variable names are the same on both pages.

Any clues?

Regards,

James

jamesct
09-06-2004, 08:21 AM
Sorry I meant"

'proceeding' page.

And the command $_POST["my_var"] is PHP ;)

James

jamesct
09-06-2004, 08:37 AM
Problem solved, misspelt variable, you know how it is.

Cheers,

James