ASP中复选框的使用.解决了再加10-30

来源:百度知道 编辑:UC知道 时间:2024/05/16 18:11:26
显示:
<table width="auto" height="auto" border="1">
<h4><tr>
<td>编号</td>
<td>用户名</td>
<td>性别</td>
<td>部门</td>
<td>厂内电邮</td>
<td>注册时间</td>
<td>是否删除</td>
</tr>
</h4>
<%
do until rs0.eof
dim unum
unum=unum+1
%>
<h5><tr>
<td><%response.write unum%></td>
<td><%response.write rs0("u_name")%></td>
<td><%response.write rs0("u_sex")%></td>
<td><%response.write rs0("u_depar")%></td>
<td><%response.write rs0("u_mail")%></td>
<td><%response.write rs0("u_date")%></td>
<td>
<!--<form name="form3" method="post&qu

在deluserresult.asp用request.form("delbox")就可以取得ID了。
取得的值如:1,3,5
是用逗号分开的一组数
删除的SQL语句你可以这样写
...where id in ("&request.form("delbox")&")...
===================================================
你不用分开了。
如:
...where id in (1,2,6)...
意思就是删除id为1、2、6的这些记录。

<form name="form3" method="post" action="deluserresult.asp?operstep=del">
<table width="auto" height="auto" border="1">
<h4><tr>
<td>编号</td>
<td>用户名</td>
<td>性别</td>
<td>部门</td>
<td>厂内电邮</td>
<td>注册时间</td>
<td>是否删除</td>
</tr>
</h4>
<%
do until rs0.eof
dim unum
unum=unum+1
%>
<h5><tr>
<td><%response.write unum%></td>
<td><%respons