I have created a multi-page form that is an assessment survey. Every element in the form is dynamically created from a mySQL database that is maintained by my client.
I cannot seem to find an answer to how I go about storing values from radio buttons.
The radio buttons:
<Input type='radio'name='5'>Female
<Input type='radio' name='5'>Male
The name attribute is dynamically created, so there is no way to know this value until run-time.
I parse the values using:
while(list($var, $val) = each($HTTP_POST_VARS)){
echo "$var = " . ${$var} . "<BR>\n";
The result I get from this is:
5 = on
As you can see, this is not very useful.
Is there any way to retrieve the index of the selected radio button? With the index I can retrieve the value from the database.
Any help is much appreciated....