valStr=request.form("val")
vals=split(valStr,vbCrLf)
for each val in vals
fields=split(val,";")
HardWareNo=fields(0)
MapCode=fields(1)
UserName=fields(2)
next
conn.execute("insert into MapCommision(username,HardWareNo,MapCode) values('"&username
&","&HardWareNo&","&UserName&"')")
Response.Write("<script language='javascript'>alert('恭喜您,编号添加成功!');window.location.href='test.asp';</script>")
%>
<form method="post" action="test.asp" name="form1" >
<textarea name="val" cols="60" rows="15"></textarea>
<input type="submit" value="提交授权信息">
</form>
我那是将121212212;323213123;21321324
同时分别写入username,HardWareNo,MapCode三个字段
这样写吗?
[此贴子已经被作者于2006-9-4 13:43:24编辑过]