asp 注册代码错误

来源:百度知道 编辑:UC知道 时间:2024/05/14 02:02:51
<!--#include file="conn.asp"-->
<%dim username,password,password1,shijian
username=request.Form("username")
password=request.Form("password")
password1=request.Form("password1")
shijian=date()
if username="" or password="" or password1="" then
response.Write "<script>alert('账号密码不能为空');location='reg.asp'</script>"
elseif password <> password1 then
response.Write "<script>alert('两次密码不同');location='reg.asp'</script>"
else
xx="select * from member where username='"&username&"'"
set zz=conn.execute(xx)
if zz("username")<>username then
conn.execute("insert into member(username,password,shijian) values ('"&username&"','"&password&"','"&shijian&"&#

拿去用吧 别客气 呵呵

<!--#include file="conn.asp"-->
<%dim username,password,password1,shijian
username=request.Form("username")
password=request.Form("password")
password1=request.Form("password1")
shijian=date()
if username="" or password="" or password1="" then
response.Write "<script>alert('账号密码不能为空');location='reg.asp'</script>"
elseif password <> password1 then
response.Write "<script>alert('两次密码不同');location='reg.asp'</script>"
else
xx="select top 1 username from member where username='"&username&"'"
set zz=conn.execute(xx)
if zz.eof then
conn.execute("insert into member(username,password,shijian) values ('"&username&"','"&password&"','"&shijian&&quo