How can I interface radio buttons with PHP?
I would like to select one of several choices and use the variable in PHP.
Only one choice per group is allowed.
<form name="state" method="post" action="next_fi le.php">
<table border="0" cellspacing="0" cellpadding="0" width=450
align=center><t r><td>
<input TYPE="radio" NAME="select_st ate"
value="illinois "></td><td>Illinois </td></tr>
<tr><td><inpu t TYPE="radio" NAME="select_st ate" value="Michigan "
CHECKED></td><td>Michigan </td></table>
<input type=button value='Continue ' onClick='javasc ript:sign_in()> </td></tr>
<?PHP
$_SESSION{'stat e'] = $select_state; does not work.
?>
Thanks for the help.
Ken
I would like to select one of several choices and use the variable in PHP.
Only one choice per group is allowed.
<form name="state" method="post" action="next_fi le.php">
<table border="0" cellspacing="0" cellpadding="0" width=450
align=center><t r><td>
<input TYPE="radio" NAME="select_st ate"
value="illinois "></td><td>Illinois </td></tr>
<tr><td><inpu t TYPE="radio" NAME="select_st ate" value="Michigan "
CHECKED></td><td>Michigan </td></table>
<input type=button value='Continue ' onClick='javasc ript:sign_in()> </td></tr>
<?PHP
$_SESSION{'stat e'] = $select_state; does not work.
?>
Thanks for the help.
Ken
Comment