FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Radio value?





UnikeViruz
<INPUT type="radio" name="1">General
how would I get the value of this?
$test = $_POST['1']; ?????
Also if they must check one of the boxes....how would i make sure of it?
Rhysige
you add value= just like yo have name etc.
krazycapital
Here is a code example:
Code:
<input type="radio" name="group_name" value="1"><br />
<input type="radio" name="group_name" value="2"><br />
<input type="radio" name="group_name" value="3"><br />

To check it:
Code:
if (isset($_POST[group_name])) {
echo "One of them was checked in";
} else {
echo "None of them were checked in";
}
UnikeViruz
Thanks crazy , Helped alot Laughing
Related topics
script backup database
help me with converting decimal value to text
survey Insert in Php
Bluetooth
Online Turkish Radio Stations
Radio G.O - Internet Radio
Radio G.O
Radio
Edit / Delete
[man]Montar Radio OnLine
Wrong order
Checkboxes and Radio Buttons
Radio and text not going 100%?
Delete one txt line depending in wich "radio" butt
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.