复选框写作
<input type=checkbox name="del[]" value=<? echo $id; ?>>提交后,在数组$_POST['del']中保存了选中的id
删除时
$ar = join(",",$_POST['del']);
$sql = "delete from tbl_name where id in ($ar)";
...
<input type=checkbox name="del[]" value=<? echo $id; ?>>提交后,在数组$_POST['del']中保存了选中的id
删除时
$ar = join(",",$_POST['del']);
$sql = "delete from tbl_name where id in ($ar)";
...
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货