PHP Radio button array example
Posted by Raj
PHP Radio button array example
In this article,I will explain how to use Radio buttons in php.
Example:
<?php
if(isset($_POST['Submit'])){
$radioValue = $_POST['radio'];
}
?>
<HTML>
<HEAD>
<TITLE> PHP Radio button array example </TITLE>
</HEAD>
<BODY>
<TABLE id="table_Id" border="1">
<TR>
<TD><input type="radio" name="radio" value="1"/></td>
<TD><input type="radio" name="radio" value="2"/></td>
<TD><input type="radio" name="radio" value="3"/></td>
<TD><input type="radio" name="radio" value="4"/></td>
</TR>
<TR><td colspan=4 align=center><INPUT type="submit" value="Submit"> </td> </TR>
</TABLE>
/BODY>
</HTML>
In this article,I will explain how to use Radio buttons in php.
Example:
<?php
if(isset($_POST['Submit'])){
$radioValue = $_POST['radio'];
}
?>
<HTML>
<HEAD>
<TITLE> PHP Radio button array example </TITLE>
</HEAD>
<BODY>
<TABLE id="table_Id" border="1">
<TR>
<TD><input type="radio" name="radio" value="1"/></td>
<TD><input type="radio" name="radio" value="2"/></td>
<TD><input type="radio" name="radio" value="3"/></td>
<TD><input type="radio" name="radio" value="4"/></td>
</TR>
<TR><td colspan=4 align=center><INPUT type="submit" value="Submit"> </td> </TR>
</TABLE>
/BODY>
</HTML>
This entry was posted on October 4, 2009 at 12:14 pm, and is filed under
array code of radio button in php,
array php radio buttons,
PHP Radio button array example,
php radio button array.,
Radio button example,
radio buttons to array php
.You can leave a response, or trackback from your own site.