Jump to content

Archived

This topic is now archived and is closed to further replies.

jwk811

easy questions with radio button-forms but just cant figure it out *solved*

Recommended Posts

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?

Share this post


Link to post
Share on other sites
nevermind problem resolved.. it was the value thing but i just made a mistake with it

Share this post


Link to post
Share on other sites
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. 

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.