jwk811 Posted October 2, 2006 Share Posted October 2, 2006 How can I retrieve the data from a radio button in a form? I know how to get all the others but I just can't figure out how this works.. I tried <input type="radio" name="1" value="(the input)"> and tried to catch the data like this<?php$name = $_POST['1'];?>and should the value come up in the variable?when i sent that data in an email it came up "on"... what does that mean, lol? Quote Link to comment Share on other sites More sharing options...
jwk811 Posted October 2, 2006 Author Share Posted October 2, 2006 nevermind problem resolved.. it was the value thing but i just made a mistake with it Quote Link to comment Share on other sites More sharing options...
Wintergreen Posted October 2, 2006 Share Posted October 2, 2006 There is no input with a radio button, you assign individual values (normally numbers) and check the value of the radio button options based on the name assigned to that group of radio buttons. 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.