asp 批理添加数据求助

来源:百度知道 编辑:UC知道 时间:2024/06/22 23:39:26
<form action="upbaoxian.asp" method="post" name="selform" >
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#D6D6EB">
<tr bgcolor="#F7F7F7">
<td colspan="8" background="/img/admin_bg_1.gif"> <div align="center"><strong><font color="#FFFFFF">上报保险信息</font></strong></div></td>
</tr>
<tr bgcolor="#f1f3f5">
<td><strong>UID</strong></td>
<td><strong>班级</strong></td>
<td><strong>姓名</strong></td>
<td><strong>学号</strong></td>
<td><strong>性别</strong></td>
<td><strong>班主任</strong></td&g

<%
dim a,b
a=request.form("checked")
b=Split(a,",")
For i=0 To ubound(b)
conn.execute ("insert into 保险管理 (uid,险种) values ('"&b(i)&"','"&request.form("select")&"'")
next
%>

http://bbs.bc-cn.net/viewthread.php?tid=172933&page=1(最下边)
'这裏有实例参考