日期:2014-05-16 浏览次数:20863 次
<form>
<%
set rs=conn.execute("select id,price from tbname")
while not rs.eof
%>
<input type="checkbox" name="id" value="<%=rs("id")%>">
<input type="text" name="price" value="">
<%
rs.movenext
wend
set rs=nothing
%>
<input type="submit" value="批量修改">
</form>
selectnum=request.form("id").count
for i=1 to selectnum
id=request.Form("id")(i)
price=request.Form("price")(i)
conn.execute("insert into tbname(id,price) values("&id&","&price&")")
next
<form>
<%
i=1
set rs=conn.execute("select id,price from tbname")
while not rs.eof
%>
<input type="checkbox" name="id" value="<%=rs("id")%>">
<input type="text" name="price" value="">
<%i=i+1
rs.movenext
wend
set rs=nothing
%>
<input type="hidden" name="selectnum" value="<%=i-1%>">
<input type="submit" value="批量修改">
</form>
selectnum=request.form("id").count
for i=1 to request("selectnum")
id=request.Form("id"&i)
price=request.Form("price"&i)
conn.execute("insert into tbname(id,price) values("&id&","&price&")")
next