|
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<body>
<% name=request.form("name")
password=request.form("password")
password=cstr(password)
tel=request.form("tel")
adss=request.form("adss")
youbian=request.form("youbian")
shengri=request.form("shengri")
if request.Form("sumbit")="OK" then
set conn=server.createobject("adodb.connection")
conn.open "driver={microsoft access driver (*.mdb)};dbq="&server.mappath("access1.mdb")
sql="insert into ziliao1(name,password,tel,adss,youbian,shengri) values('"&name&"','"&password&"',"&tel&",'"&adss&"','"&youbian&"','"&shengri&"')"
conn.execute sql
conn.close
set conn=nothing
end if
%>
<form action="charu.asp" method="post">
姓名:<input name="name" type="text"><br>
密码:<input type="password" name="password"><br>
电话:<input type="text" name="tel"><br>
地址:<input type="text" name="adss"><br>
邮编:<input type="text" name="youbian"><br>
生日:<input type="text" name="shengri"><br>
<input type="submit" name="sumbit" value="OK">
</form>
</body>
</html>
每次点击提交后,就出现错误,提示说是缺少参数,期待值是“1”,不知道是为什么,希望个位帮忙解决一下。 |
|