phpgoal Posted December 18, 2012 Share Posted December 18, 2012 Hi, Below form does not allow me to select radio button for both question. I can select only one question. Please help. <form name="lab5" method="post" action="radioS.php"> <table align = "center" border="1" > <tr> <td> Q1 </td> <td> first answer is .</td> <td> <Input type = 'Radio' Name ='gender' value= 'true' <?PHP print $male_status; ?>>T <Input type = 'Radio' Name ='gender' value= 'false' <?PHP print $female_status; ?>>F</td> </tr> <tr> <td> Q2 </td> <td> 2nd answer is </td> <td> <Input type = 'Radio' Name ='gender' value= 'true' <?PHP print $male_status; ?>>T <Input type = 'Radio' Name ='gender' value= 'false' <?PHP print $female_status; ?>>F</td> </tr> Quote Link to comment https://forums.phpfreaks.com/topic/272139-php-radio-button/ Share on other sites More sharing options...
MDCode Posted December 18, 2012 Share Posted December 18, 2012 Radio buttons with the same name are considered of the same set. If you wish to be able to select one for each question change the name attribute in one Quote Link to comment https://forums.phpfreaks.com/topic/272139-php-radio-button/#findComment-1400084 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.