<input type=checkbox name=aaa checked>例如:1为选中,0为不选中可这样
if (id == 1)
echo "<input type=checkbox name=aaa value=1 checked>";
elseif(id == 0)
echo "<input type=checkbox name=aaa value=0 >";
end if
if (id == 1)
echo "<input type=checkbox name=aaa value=1 checked>";
elseif(id == 0)
echo "<input type=checkbox name=aaa value=0 >";
end if
要用$_POST['dl']才可以
如果是用get method的话要用$_GET['dl']
如此类推
Reference: http://www.php.net/manual/en/reserved.variables.php#reserved.variables.post