Hello Guys,
I am trying to update multiple table rows using dynamically generated radio buttons.
The radio buttons are in groups of two (yes and no) which also have dynamic names.
In other to give the group unique names, I have added row numbers to the group names as thus:
... some select statement...
while($row = mysql_fetch_array($result)){
echo "<input type=\"radio\" name=\"test".$rowId."\" value=\"yes\" />Yes
<input type=\"radio\" name=\"test".$rowId."\" value=\"no\" checked=\"checked\" />No";
}
this works fine in grouping the buttons, but my problem is how to retrieve the value of the buttons when the form is submitted seeing that the group names are part dynamic.
Summarised in one sentence, I am trying to retrieve values of dynamically named radio button groups.
I am losing it. Somebody pls help.