Board logo

标题: [原创]用户主册系统 [打印本页]

作者: ulkgpyuq    时间: 2005-6-17 22:52     标题: [原创]用户主册系统

大家好./..我在做一个户注册系统,,,,填写完注册内容后提交到以下代码,,,,下面代码看起来没什么问题一样,,,,,可提交过去就是不行,,,,也没报什么差误,,是什么原因呢,,,
 <%
set conn=server.createobject("adodb.connection")
conn.open "driver={microsoft access driver (*.mdb)};dbq="&server.mappath("date.mdb")
username=request.infoform("username")
password=request.infoform("password")
password2=request.infoform("password2")
username1=request.infoform("username1")
lxrEmail=request.infoform("lxrEmail")
home=request.infoform("home")
add=request.infoform("add")
tel=request.infoform("tel")
qq=request.infoform("qq")  
exec="insert into guesbook(username,password,password2,username1,lxremail,home,add,tel,qq)values('"+username+"','"+password+"','"+password2+"','"+username1+"','"+lxremail+"','"+home+"','"+add+"','"+tel+"','"+qq+"')"
conn.execute exec
conn.close
set conn=nothing
response.write "记录添加成功!"
%>
作者: ulkgpyuq    时间: 2005-6-17 23:26

咱没人回复呢
作者: caiyakang    时间: 2005-6-18 00:48

<%
set conn=server.createobject("adodb.connection")
conn.open "driver={microsoft access driver (*.mdb)};dbq="&server.mappath("date.mdb")
username=request("username")
password=request("password")
password2=request("password2")
username1=request("username1")
lxrEmail=requestlxrEmail")
home=request("home")
add=request("add")
tel=request("tel")
qq=request("qq")  
exec="insert into guesbook(username,password,password2,username1,lxremail,home,add,tel,qq)values('"+username+"','"+password+"','"+password2+"','"+username1+"','"+lxremail+"','"+home+"','"+add+"','"+tel+"','"+qq+"')"
conn.execute exec
conn.close
set conn=nothing
response.write "记录添加成功!"
%>
作者: ulkgpyuq    时间: 2005-6-18 20:45

这是什么意思呢, ,,怎么还是不行呀,,,能说详细点吗?
作者: caiyakang    时间: 2005-6-19 00:57

<%
set conn=server.createobject("adodb.connection")
conn.open "driver={microsoft access driver (*.mdb)};dbq="&server.mappath("date.mdb")
username=request("username")
password=request("password")
password2=request("password2")
username1=request("username1")
lxrEmail=requestlxrEmail")
home=request("home")
add=request("add")
tel=request("tel")
qq=request("qq")  
exec="insert into guesbook(username,password,password2,username1,lxremail,home,add,tel,qq)values('"&username&"','"&password&"','"&password2&"','"&username1&"','"&lxremail&"','"&home&"','"&add&"','"&tel&"','"&qq&"')"
conn.execute exec
conn.close
set conn=nothing
response.write "记录添加成功!"
%>




欢迎光临 编程论坛 (https://bbs.bc-cn.net/) Powered by Discuz! 6.1.0