📄 reg.asp
字号:
<%
'叛断Session变量是否超时
if isempty(session("user_id")) then
'response.redirect "timeout.htm"
end if
if session("user_id")<>1 then
response.redirect "havereg.htm"
end if
%>
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>蓝芒交友申请</title>
<style>
<!--
tr { font-size: 10pt }
body { font-size: 10pt }
A:link{color:blue;text-decoration:none}
A:visited{color:blue;text-decoration:none}
A:active{color:#ff9966;text-decoration:none}
A:hover{color:red;text-decoration:none}
-->
</style>
<script language="javascript">
<!--
function isok(theform)
{
if (theform.user_name.value.length<2 || theform.user_name.value.length>10)
{
alert("用户名称最少要2位,最多10位!");
theform.user_name.focus();
return (false);
}
if (theform.password.value.length<3 || theform.password.value.length>10)
{
alert("密码最少要3位,最多10位! !");
theform.password.focus();
return (false);
}
if (theform.password_two.value=="")
{
alert("你密还有确认密码没填呢!");
theform.password_two.focus();
return (false);
}
if (theform.password_two.value!=theform.password.value)
{
alert("两次密码怎么不一样!");
theform.password_two.focus();
return (false);
}
return (true);
}
-->
</script>
</head>
<body>
<form method="POST" action="regsubmit.asp" onsubmit="return isok(this)">
<table border="0" width="402" cellspacing="0" cellpadding="0" align="center">
<tr>
<td width="400"><b><font size="3">缘份的天空网友入会注册</font></b></td>
</tr>
<tr>
<td width="400"><font color="#008000">请填好下表提交,并记住用户名和密码,用于以后登陆时的<a href="#">身份验证</a></font></td>
</tr>
</table>
<table border="1" width="400" bordercolor="#336699" cellspacing="0" cellpadding="0" height="66" align="center">
<tr>
<td width="100%" valign="top" height="43">
<table border="0" width="100%" cellspacing="0" cellpadding="0" bgcolor="#CCCCFF">
<tr>
<td width="43%">
<p align="center">用户名称:</td>
<td width="57%"><input type="text" name="user_name" size="18">(2-10)</td>
</tr>
<tr>
<td width="43%">
<p align="center">管理密码:</td>
<td width="57%"><input type="password" name="password" size="18">(3-10)</td>
</tr>
<tr>
<td width="43%">
<p align="center">确定密码:</td>
<td width="57%"><input type="password" name="password_two" size="18"></td>
</tr>
</table>
</td>
</tr>
</table>
<p align="center"> <input type="submit" value="提交" name="B1"><input type="reset" value="全部重写" name="B2"></p>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -