📄 zccg.asp
字号:
<!--#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 &"')"
conn.execute (sql)
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>"
end if %>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -