我是新手 有谁能看看ASP登陆代码有没有出错啊?
我是新手,请各位帅哥帮忙看下,下面的代码有没有哪里出错,我做的网站测试出问题,这代码能写入数据库,但是不显示“恭喜!您已注册成功!请进行登陆'的信息,觉得很奇怪,又找不到解决办法,请有能力者发帖一起探讨,或者加我QQ1194617 一起研究!谢谢啊~<!--#include file="conn.asp"-->
<%
uid=request("uid")
pwd=REQUEST("pwd")
uname=REQUEST("uname")
xb=REQUEST("xb")
sfz=REQUEST("sfz")
email=REQUEST("email")
tel=REQUEST("tel")
tishi=REQUEST("tishi")
tsda=REQUEST("tsda")
set rs=conn.execute("select * from puser where uid='"& uid &"'")
if rs.eof then
sql="insert into puser(uid,pwd,uname,xb,sfz,email,tel,tishi,tsda) values( '"& uid & "','"& pwd &"','"& uname & "','"& xb &"',' "& sfz &"','"& email &"','"& tel &"','"& tishi &"','"& tsda &"')"
sql2="insert into huiyuan(mingzi,mima) values ('"& uid & "','"& pwd & "')"
conn.execute(sql)
conn.execute(sql2)
'Response.Write ("恭喜!您已注册成功!请进行登陆")
'Response.Write "<script language='JavaScript'>"
'Response.Write "alert('恭喜!您已注册成功!请进行登陆');"
'Response.Write "window.location='index.asp'"
'Response.Write "</script>"
else
'Response.Write "<script language='JavaScript'>"
'Response.Write "alert('对不起!此用户名已经存在,请更换用户名再进行注册!');"
'Response.Write "window.history.go(-1);"
'Response.Write "</script>"
'Response.Write ("对不起!此用户名已经存在,请更换用户名再进行注册")
end if
%>