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 Quote Link to comment 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'] ? Quote Link to comment Share on other sites More sharing options...
toxinhead Posted December 8, 2007 Author Share Posted December 8, 2007 Yer Quote Link to comment 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 Quote Link to comment 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.