So i ve got 3 radio buttons in a html document. Then i simply try to get if one of the buttons is set and then to print a message for one of the ticked buttons. They all are in a form. my buttons are:
echo "<table border=0>";
echo "
<tr>
<td>
<input type=radio name=sg value=admin /> Administrator
</td>
</tr>
";
echo "
<tr>
<td>
<input type=radio name=sg value=operator /> Operator
</td>
</tr>
";
echo "
<tr>
<td>
<input type=radio name=sg value=member checked=checked /> member
</td>
</tr>
";
echo "</table>";
The way i try to get them is:
if(isset($_GET['member'])) {
echo "m is set!";
}
if(isset($_GET['admin'])) {
echo "a is set!";
}
if(isset($_GET['operator'])) {
echo "op is set!";
}
This doesnt print anything, means none of the statements in the if clauses are true. How do i get them?