|
本帖最后由 ttasp 于 2015-3-4 09:04 编辑
回复 ttasp
试过了还是不行!我觉得是不是提交表单的问题!谢谢
王勋 发表于 2015-3-4 08:56
你把这个结果贴来看看
- <%
- set conn=server.createobject("adodb.connection")
- conn.open "driver={microsoft access driver (*.mdb)};dbq="&server.mappath("s1.mdb")
- htjf=request.form("htjf")
- htyf=request.form("htyf")
- htqtzt=request.form("htqtzt")
- htmc=request.form("htmc")
- htxh=request.form("htxh")
- qdrq=request.form("qdrq")
- jcbm=request.form("jcbm")
- htscr=request.form("htscr")
- zxdcfs=request.form("zxdcfs")
- jk=request.form("jk")
- qsr=request.form("qsr")
- lyqjjf=request.form("lyqjjf")
- lyqjyf=request.form("lyqjyf")
- lyqjqt=request.form("lyqjqt")
- tbr=request.form("tbr")
- bz=request.form("bz")
- exec="insert into 合同后评估2(合同甲方,合同乙方,合同其他主体,合同名称,合同序号,签定日期,决策部门,合同审查人,资信调查方式,价款,签署人,履约期间甲方,履约期间乙方,履约期间其他,填表人,备注)values('"+htjf+"','"+htyf+"','"+htqtzt+"','"+htmc+"','"+htxh+"','"+qdrq+"','"+jcbm+"','"+htscr+"','"+zxdcfs+"','"+jk+"','"+qsr+"','"+lyqjjf+"','"+lyqjyf+"','"+lyqjqt+"','"+tbr+"','"+bz+"')"
- response.write exec
- response.end
- conn.execute(exec)
- conn.close
- set conn=nothing
- response.write "<script>alert('记录添加成功!');history.back();</script>"
- %>
复制代码 |
|