关于ASP注册的一个小问题,请高手帮忙解决!答对高分追加

来源:百度知道 编辑:UC知道 时间:2024/05/27 15:54:51
'++++++++++++接受数据开始+++++++++++
uid=trim(request.form("uid"))
pwd=md5(trim(request.form("pwd")))
username=trim(request.form("UserName"))
cardid=trim(request.form("cardid"))
tel=trim(request.form("tel"))
if uid="" or pwd="" or username="" or tel="" then
response.write"<script>alert('请认真填写!');history.go(-1)</script>"
response.end
end if
email=trim(request.form("email"))
qq=trim(request.form("qq"))
add=trim(request.form("add"))
ip = Request.ServerVariables("HTTP_X_FORWARDED_FOR")
If ip = "" Then
ip = Request.ServerVariables("REMOTE_ADDR")
end if
'++++++++++++接受数据结束+++++++++++
if uid<>"" then
sql1="select * from dgfox_user where username='"&HtmlEncode(uid)&"'"
s

你最后的
response.write "<script>alert('此用户名已经存在,请重新选择!');history.back();</script>"
你改成
response.write "<script>alert('注册成功,请登录!');history.back();</script>"
就可以了啊