posted 18 years ago
Hello,
I'm confused about passing parameters using Radio buttons.
suppose I have a form in AAA.html as:
Now, I have named all the radio buttons the same, since I only
want one of them to be selected.
When submitting this information, a new window is opened using...
If (in a script in BBB) I try to retrieve the 'diff' parameter, it doesn't work, I think thats because 'diff' is an array of values.
So I have to use something like
to extract the value, but this just gives the 3rd value of the 'diff' array
(I think), I want to retrieve the value associated with the box that has been checked.
So if the 'Easy' box is checked, I want to retrieve "1", and so on...
Can anyone explain how this is done?
Thanks for any help.