<strong>首先要了解sql语句</strong> <br>$SQL="delete from `jb51` where id in (1,2,4)"; <br>表单大概是: <br><div class="codetitle"> <span><a style="CURSOR: pointer" data="73701" class="copybut" id="copybut73701" onclick="doCopy('code73701')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code73701"> <br><form action="" method="post"> <br><input name="ID_Dele[]" type="checkbox" id="ID_Dele[]" value="1"> <br><input name="ID_Dele[]" type="checkbox" id="ID_Dele[]" value="2"> <br><input name="ID_Dele[]" type="checkbox" id="ID_Dele[]" value="3"> <br><input name="ID_Dele[]" type="checkbox" id="ID_Dele[]" value="4"> <br><input type="submit"> <br> </form> <br> </div> <br>php函数主要用到implode <br><div class="codetitle"> <span><a style="CURSOR: pointer" data="65415" class="copybut" id="copybut65415" onclick="doCopy('code65415')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code65415"> <br>$ID_Dele= implode(",",$_POST['ID_Dele']); <br>$SQL="delete from `user` where id in ($ID_Dele)"; <br> </div> <br><a href="http://www.jb51.net/article/6488.htm">http://www.jb51.net/article/6488.htm</a>