代码如下 | 复制代码 |
<form action="?action=doing" method="post"> <input name="ID_Dele[]" type="checkbox" id="ID_Dele[]" value="1"/> <input name="ID_Dele[]" type="checkbox" id="ID_Dele[]" value="2"/> <input name="ID_Dele[]" type="checkbox" id="ID_Dele[]" value="3"/> <input name="ID_Dele[]" type="checkbox" id="ID_Dele[]" value="4"/> <input type="submit"/> </form> |
php处理文件
代码如下 | 复制代码 |
$ID_Dele= implode(",",$_POST['ID_Dele']); $SQL="delete from `doing` where id in ($ID_Dele)"; |
时间: 2024-10-25 07:09:56