Vidya_tr Posted April 25, 2009 Share Posted April 25, 2009 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..... Quote Link to comment https://forums.phpfreaks.com/topic/155607-getting-posted-values-of-an-array-of-radio-buttons/ Share on other sites More sharing options...
DEVILofDARKNESS Posted April 25, 2009 Share Posted April 25, 2009 I would let the form action be on the same page, and store the name, value in a session, (or cookie) and send those to the submit page. Quote Link to comment https://forums.phpfreaks.com/topic/155607-getting-posted-values-of-an-array-of-radio-buttons/#findComment-818955 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.