首先这是我的 PHP 代码
if(!isset($_POST['selection'])){
$missing['selection'] = $required['selection'];
}
if(empty($missing)) {
post2session();
$_SESSION['step'][0] = 0;
redirect("");
}
这是我的 HTML
<form action="" method="post">
<table cellpadding="0" cellspacing="0" border="0" class="tbl_insert">
<tr>
<th><label for="selection">Select from following that applies to you</label></th>
<td>
<input type="radio" name="selection" id="selection" group="form_type" value="form1"> />Form 1<br />
<input type="radio" name="selection" id="selection" group="form_type" value="form2" />Form 2<br />
<input type="radio" name="selection" id="selection" group="form_type" value="form3" />Form 3<br />
<input type="radio" name="selection" id="selection" group="form_type" value="form4" />Form 4<br />
</td>
</tr>
</table>
</form>
如果他们选择无线电“form1”,我将如何将用户重定向到 FORM1;FORM2 如果他们选择了“form2”;等等
感谢您提供的帮助 (Y)