sundance1980
MIS
Hello I am passing two radio buttons via a post. One called HELP TEST.
On sumbit I want it to do two different things depenending on what is selected.
This is the first time I am using radio button and superglobal variables.
Should I be doing something like this:
On sumbit I want it to do two different things depenending on what is selected.
This is the first time I am using radio button and superglobal variables.
Should I be doing something like this:
Code:
<form action=\"temp.php\" method=\"post\" name=\"entry\">
<input type=\"radio\" name=\"group1\" value\"help\" checked>HELP
<input type=\"radio\" name=\"group1\" value\"test\">TEST
<input type=\"submit\" value=\"search\" >
</form>
//temp.php
if ($_POST['group1'] & HELP){
do this...
}
else {
do something else...
}