通过复选框选中传需要进行删除的资息ID号过,而通过复选框传递过来必然是会是这样,如:
56,57,58
在处理页进行:
ID= Request.Form("ID")
IDX = split(ID,",")
For i = 0 to Ubound(IDX)
ImgUrl=Conn.exeCute("select top 1 imgurl from detialinfo where ID="&IDX(i)&"")(0)
if ImgUrl<>"" then Call FSODell(""&ImgUrl&"") '这里自己写一个FSO删除过程 我不进行写代码
Conn.exeCute("Delete from detialinfo where ID="&IDX(i)&"")
Next
RePage=Request.ServerVariables("HTTP_REFERER")
response.write "<script language='javascript'>alert('删除成功!');location.href='"&RePage&"'; </script>"
Conn.close : set Conn=nothing
response.end
[[italic] 本帖最后由 天涯听雨 于 2008-1-11 20:23 编辑 [/italic]]