提交数据到ACCESS,提示成功但数据库里什么也没有
以下是(bxsave.asp)写入数据库的部份代码,(我测试过了,表单的值是能传到本文件的),请大侠指点。。。。if request("person")="" or request("tel")="" or request("address")="" or request("time_free")="" then
response.write "<script>alert('对不起,提交失败,请输入完整的信息,以便及时维修!');window.history.back();</script>"
'response.Write "对不起,提交失败,请输入完整的信息,以便及时维修!"
else
person=trim(request.form("person"))
tel=trim(request.form("tel"))
time_free=trim(request.form("time_free"))
bxbigclass=request.form("bigclass")
bxsmallclass=request.Form("smallclass")
detial=trim(request.Form("detial"))
idcard=request.Form("idcard")
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from sdbx",conn,1,3
rs.addnew
rs("person")=person
rs("tel")=tel
rs("time_free")=time_free
rs("bxbigclass")=bxbigclass
rs("bxsmallclass")=bxsmallclass
rs("detial")=detial
rs("idcard")=idcard
rs.update
rs.close
set conn=nothing
response.write "<script language=javascript>alert('报修单提交成功!');window.location.href='index.asp';</script>"
end if