<%
set rs=server.createobject("adodb.recordset")
sql="select * from tab1"
rs.open sql,conn,1,1
%>
<form action="del.asp" method="post">
<%
i=1
do while not rs.eof
%>
<input type="checkbox" name="id" value="<%=rs("id")%>"><%=rs("xwmc")%><input type="submit" value="删除">
<br>
<%
i=i+1
rs.movenext
loop
rs.close
set rs=nothing
%>
</form>
DEL。ASP的内容是这样写的
<%
id=request.Form("id")
set rs=server.createobject("adodb.recordset")
rs.open "delete from tab11 where id="&id,conn,1,3
rs.update
rs.close
set rs=nothing
%>
你没看到红色这部分吗?