日期:2014-05-16 浏览次数:21162 次
<!--#include file="adminconn.inc" -->
<%
t1=request.form("t1")
t1=Split(t1,",")
bb_work=ltrim(trim(request.form("bb_work")))
bb_work=Split(bb_work,",")
hh_name=ltrim(trim(request.form("hh_name")))
hh_name=Split(hh_name,",")
didian=request.form("didian")
didian=Split(didian,",")
shu=0
i=0
for i=0 to UBound(t1)
if request.form("bb_work")<>"" then
if ltrim(trim(bb_work(i)))="" then '如果bb_work值为空,则不填加。
else
sql="insert into work_mx(hh_shuliang,hh_name) values ('"&bb_work(i)&"','"&hh_name(i)&"')"
end if
conn.execute sql,shu1
end if
shu=shu+1
next
response.write("<Script>alert('添加成功!');location.href='add_work.asp';</script>")
conn.close
set conn=nothing
%>