⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 savenreguser.asp

📁 ajax技术书籍 ajax技术书籍
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>保存简单注册用户</title>
</head>
<!--#include file="Inc/conn.inc"-->
<!--#include file="Inc/checkUserName.inc"-->
<!--#include file="Inc/saveNRegUser.inc"-->
<body>
<%
userName = request("userName")
userPass = request("userPass1")
userMail = request("userMail")

if checkUserName(userName, "users", "userName") = "Err_102" then	'if the username is ok
	Call saveNRegUser(userName, userPass, userMail)
		%>
<script type="text/javascript">
<!--
alert("恭喜!\n您已成功注册!");
location.href="u_reg.htm";
//-->
</script>		
		<%
else
	if saveNRegUser(userName, userPass, userMail) = "Err_121" then
		%>
<script type="text/javascript">
<!--
alert("对不起,\n此用户名已存在!");
history.back(0);
//-->
</script>		
		<%
	end if
end if
%>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -