use a hidden input field to record the ids of the selected options , like "1,2,3...."then after submit , use $ar = explode(",",$_POST['ids']); to get them into an array.
or you can do this : name all the checkbox fields "checkid[]"when submit, you can use $_POST['checkid'][] to get the data .
'循环显示要删除的ID "<input type='checkbox' name='fid' value='".fid."'>"执行sql删除 数字型id的sql格式 sql = "delete from 表 where id in (".$fid.")"字符型id的sql格式 sql = "delete from 表 where id in ('".str_replace( str_replace($fid," ",""),"," ,"','")."')"
它们的值比方说是它们的ID,则你取的ID就进行删除
"<input type='checkbox' name='fid' value='".fid."'>"执行sql删除
数字型id的sql格式
sql = "delete from 表 where id in (".$fid.")"字符型id的sql格式
sql = "delete from 表 where id in ('".str_replace( str_replace($fid," ",""),"," ,"','")."')"