表单页代码如下: <%do while not rs2.eof%> <tr bgcolor=#222222> <td><%=rs2("nickname")%></td> <td><%=rs2("qq")%></td> <td><%=rs2("round"&session("previousround")&"team")%></td> <td><%=rs2("round"&session("previousround")&"score")%></td> <td><input type="checkbox" name="checkbox" value="<%=rs2("qq")%>"></td> </tr> <%rs2.movenext loop %> 接收并修改数据库代码如下: <% allselected=Split(Request.form("checkbox"))
for each i in allselected response.Write i set rs2=server.createobject("adodb.recordset") sql2="update gracedata set gracedata.round"&session("currentround")&"pass=1 where gracedata.qq="&i on error resume next set rs2=conn.execute(sql2) rs2.close set rs2=nothing next conn.close %> 但是好像只能修改数据库内的一个数据,急用呀,请各位朋友帮忙一下。