我有一个单选按钮,但是当我单击提交按钮时它不起作用..提交按钮将再次重新加载“weeks_process.php”[同一页面]的页面,但随后可能代码中的选中命令不起作用..
下面是我的代码:
$radio = mysql_query("SELECT fldNetname FROM tbldata WHERE fldWeek = '$get_week' GROUP BY fldNetname ORDER BY fldNetname");
while ($row = mysql_fetch_array($radio))
{
echo "<div><input type='radio' name='playRadio[]' class='chk_boxes1' value='" . $row['fldNetname']."' " .($_POST['playRadio[]'] == $row['fldNetname'] ? 'checked' : '') . " >";
echo $row['fldNetname'];"</div>";
}
谢谢