toxinhead Posted December 8, 2007 Share Posted December 8, 2007 Hey there guys! Can someone please help me find out how to get different name values out of radio buttons so i can put them into mysql! here is my form! <form name="form1" method="post" action="register_work.php"> Gender: <input name="gender" type="radio" value="robot" checked> Robot <br/> <input name="gender" type="radio" value="male"> Male <br/> <input name="gender" type="radio" value="female"> Female <br/> <input value="Submit now" name="submit" type="submit"> Since they all have to have the same name value "gender" to be in a group, i cant find a way to send the values differently into mysql as they all come up with "gender" no matter what radio button you click on! Please help! Ricky Link to comment https://forums.phpfreaks.com/topic/80718-solved-radio-button-help-how-do-you-get-the-name-value/ Share on other sites More sharing options...
revraz Posted December 8, 2007 Share Posted December 8, 2007 How are you sending them to the DB? $_POST['gender'] ? Link to comment https://forums.phpfreaks.com/topic/80718-solved-radio-button-help-how-do-you-get-the-name-value/#findComment-409404 Share on other sites More sharing options...
toxinhead Posted December 8, 2007 Author Share Posted December 8, 2007 Yer Link to comment https://forums.phpfreaks.com/topic/80718-solved-radio-button-help-how-do-you-get-the-name-value/#findComment-409413 Share on other sites More sharing options...
toxinhead Posted December 8, 2007 Author Share Posted December 8, 2007 oh THanks heaps, you made me rember something LOL i forgot the $! Thanks Link to comment https://forums.phpfreaks.com/topic/80718-solved-radio-button-help-how-do-you-get-the-name-value/#findComment-409416 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.