求教ASP达人,关于ASP中设置一个多行文本框,以回车为分隔符,然后我要分离这些数据出来统一入库

2024-12-13 16:39:51
推荐回答(1个)
回答1:

xx = split(request("list_sn"),vbcrlf)
for i=0 to ubound(xx)
if trim(xx(i))<>"" then
rs.AddNew
rs("list_pn") = request("list_pn")
rs("list_sn") = trim(xx(i))
rs("list_date") = request("list_date")
...
end if
next
rs.update