ASP中复选框批量执行修改或者删除,接受页面如何区别要处理的操作是修改还是删除!

功能页面:<form action=Pstn_batch.asp Method=Get><td><input type=checkbox name=idnum value=<%=rs("id")%>><%=rs("id")%></td><input type="button" name="batch_eidt" value="批量修改"> <input type="button" name="batch_dele" value="批量删除"></form>这个页面能不能再提交一个WOR参数过去,区别是修改还是 删除 处理页面Pstn_batch.asp <%idnum=Request("idnum")szid=split(Request("idnum"),",") if wor="del" thensql="delete from pstn where id in("&idnum&")"Conn.execute(sql)end if if wor="edit" thenfor i=0 to ubound(szid)sql="update pstn set customer='未使用' where id="&szid(i)&"Conn.execute(sql)nextend if%> 不知道大家明白我的意思了没有!
2026-12-04 16:40:27
推荐回答(1个)
回答1:


><%=rs("id")%>








提交以后,服务端用Request.Form("action") 来接收。再进行判断处理。
明白?