Jump to content

getting posted values of an array of radio buttons


Vidya_tr

Recommended Posts

I have a set of radio buttons created dynamically...

echo ' <input name="choice'.$questions['question_number'].'[]" type="radio" value="'.$answers['answer'].'" />';

 

one set of radio buttons for choosing the answers for first question, another set for second question and so on...(for a number of questions)

 

each set of radio buttons are created with a unique name,'choice1[]', 'choice2[]'  according ot its question number

the checked values of the buttons are posted to another page submit.php when the submit button is pressed. How can I access the checked values of each set of radio buttons??? in submit.php?

please help.....

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.