📄 reg_result.asp
字号:
<!-- #include file="conn.asp"-->
<%
if Request.Form("username")<>"" Then
if Request.Form("passcode")<>Session("GetCode") Then
Call AlertBack("验证码填写错误!")
Response.End
End if
if Request.Form("password")<>Request.Form("pwd") Then
Call AlertBack("密码确认不正确!")
Response.End
End if
if Request.Form("password")="" Then
Call AlertBack("请填写密码!")
Response.End
End if
set rst=conn.execute("Select * from user where username='"&trim(Request.Form("username"))&"'")
if Not rst.eof then
Call AlertBack("该用户已经注册!")
Response.End
End if
set rst=conn.execute("Select * from user where email='"&trim(Request.Form("email"))&"'")
if Not rst.eof then
Call AlertBack("该邮箱已经注册!")
Response.End
End if
set rs=Server.CreateObject("ADODB.recordset")
sql="select * from user"
rs.open sql,conn,1,3
rs.addnew
rs("username")=Request.Form("username")
rs("password")=Request.Form("password")
rs("sex")=Request.Form("sex")
rs("nickname")=Request.Form("nickname")
rs("email")=Request.Form("email")
rs.update
rs.close
set rs=nothing
conn.close
set conn=nothing
Session("username")=Request.Form("username")
End if
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>站长帐户 - <%=sitetitle%></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta http-equiv="Content-Language" content="zh-cn" />
<link href="/favicon.ico" type="image/x-icon" rel="shortcut icon" />
<link href="/favicon.ico" type="image/x-icon" rel="bookmark" />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="imagetoolbar" content="no" />
<meta content="Copyright 2007 netsoz.com" name="copyright" />
<link href="../css/accounts.css" type="text/css" rel="stylesheet" />
<script language="javascript" type="text/javascript">
function repwd(){
location.href="getpass.asp";
}
function form_onsubmit(){
var filter=/^[a-zA-Z0-9_ ]{2,16}$/;
if (!filter.test(document.form.username.value)) {
alert("请输入2-16位用户名!");
document.form.username.focus();
return false;
}
if (!filter.test(document.form.password.value)) {
alert("请输入登录密码!");
document.form.password.focus();
return false;
}
var filter=/^\d{4,4}$/;
if (!filter.test(document.form.passcode.value)){
alert("请填写4位数字验证码!");
document.form.passcode.focus();
return false;
}
}
</script>
</head>
<body bgcolor="#FFFFFF">
<DIV id=Head>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="220" align="center" style="padding:1px 0px 0px 0px;"><a href="../index.asp" onFocus="this.blur();"><img src="../images/logo_coodirs.gif" width=206 height=50 vspace=7 border=0 alt="netsoz中文网站目录"></a></td>
<td valign="top" style="padding:1px 0px 0px 0px;"><table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td align="right" valign="top" style="padding:6px 16px 0px 0px;">
<a href="../index.asp" class="linkNo">网站目录首页</a> - <a href="../accounts/login.asp" class="linkNo">登录</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width="100%" border="0" cellpadding="2" cellspacing="1" style="border-top:1px solid #99B2CC; border-bottom:1px solid #99B2CC;">
<tr>
<td height="20" bgcolor="#DBE9F4"> 您的位置:创建帐户</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" style="padding:6px 16px 10px 16px;">
<span class="f60b14">恭喜您,站长帐户创建成功!</span><br><br>
1、请牢记您的帐户名称:<b><%=request.form("username")%></b> 和 邮箱地址:<b><%=request.form("email")%></b>;<br>
2、如果您忘记密码,可用 <b>帐户名称</b> 和 <b>邮箱地址</b> <a href="../accounts/getpass.asp">找回密码</a>;<br>
3、您的用户名和密码已经发送到您的邮箱中;<br>
4、请进入您的邮箱,完成邮箱确认,若您没有完成邮箱确认,可能影响您在中国站长之家的部分服务;<br><br>
感谢您对中国站长之家的支持,希望我们给您带来满意的的服务,谢谢!
</td>
<td width="1" nowrap background="images/dot_line.gif"></td>
<td width="40%" valign="top" style="padding:6px 0px 0px 6px;">
<table width="100%" border="0" cellspacing="1" cellpadding="2">
<tr>
<td class="f60b14">站长登录</td>
</tr>
<tr>
<td style="padding:6px 0px 10px 16px;">
<table width="100%" border="0" cellspacing="0" cellpadding="2" align="center">
<form name="form" action="login.asp" method="post">
<tr valign="bottom">
<td height="20" colspan="2" style="font-size:12px; font-weight:bold; padding-left:32px;"></td>
</tr>
<tr>
<td width="130" align="right">用户名:</td>
<td><input name="username" type="text" value=""></td>
</tr>
<tr>
<td align="right">密 码:</td>
<td><input name="password" type="password" value=""></td>
</tr>
<tr>
<td align="right">验证码:</td>
<td><input name=passcode type=text id=passcode size="6" maxlength=4> <img src="inc/code.asp" width="40" height="10" OnClick="this.src='inc/code.asp'" style="cursor:hand" alt="刷新验证码"></td>
</tr>
<tr valign="bottom">
<td height="40" colspan="2" align="center"><input name="Submit" type="Submit" value="登录" class="submit" onFocus="this.blur()"> <input name="reset" type="reset" value="重填" class="submit" onFocus="this.blur()"> <input name="button" type="button" value="找回密码" onClick="javascript:repwd();"></td>
</tr>
<tr>
<td height="30" colspan="2" align="center"> </td>
</tr>
</form>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<%=sitefoot%>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -