📄 newuser.asp.bak
字号:
<!--#include file="inc/userconn.inc"-->
<html>
<head>
<title>新用户注册</title>
<link rel="stylesheet" href="inc/guhongying.css" type="text/css">
</head>
<body bgcolor="7C96B8" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<script language="JavaScript">
function CheckForm()
{
if (document.ADDUser.UserName.value.length == 0) {
alert("请输入您的用户名.");
document.ADDUser.UserName.focus();
return false;
}
if (document.ADDUser.UserName.value.indexOf("<")!=-1 || document.ADDUser.UserName.value.indexOf(">")!=-1){
alert("用户名中不能包含 (<,>) ");
document.ADDUser.UserName.focus();
return false;
}
if (document.ADDUser.UserName.value.indexOf("'")!=-1){
alert("用户名中不能包含 (') ");
document.ADDUser.UserName.focus();
return false;
}
if (document.ADDUser.password.value.length == 0) {
alert("请输入您的密码.");
document.ADDUser.password.focus();
return false;
}
if (document.ADDUser.PW_Again.value.length == 0) {
alert("请确认您的密码.");
document.ADDUser.PW_Again.focus();
return false;
}
if (document.ADDUser.password.value != document.ADDUser.PW_Again.value) {
alert("您两次输入的密码不一样!请重新输入.");
document.ADDUser.password.focus();
return false;
}
if (document.ADDUser.Email.value.length == 0) {
alert("请输入您的Email.");
document.ADDUser.Email.focus();
return false;
}
if (document.ADDUser.Email.value.length > 0 && !document.ADDUser.Email.value.match( /^.+@.+$/ ) ) {
alert("Email 错误!请重新输入");
document.ADDUser.Email.focus();
return false;
}
if (document.ADDUser.telphone.value.length == 0) {
alert("请输入您的联系电话,以便我们可以为您更好服务.");
document.ADDUser.telphone.focus();
return false;
}
if (document.ADDUser.Oicq.value.length == 0) {
alert("请输入您的QQ号码,以便我们可以为您更好服务.");
document.ADDUser.Oicq.focus();
return false;
}
if (document.ADDUser.userfrom.value.length == 0) {
alert("请输入您所在城市及详细地址.");
document.ADDUser.userfrom.focus();
return false;
}
return true;
}
</script>
<table height="50" align="center"><tr><td></td></tr></table>
<form name="ADDUser" method="POST" action="adduser.asp" onSubmit="return CheckForm();">
<table width="66%" border="0" cellspacing="1" cellpadding="6" bgcolor="#000000" align="center">
<tr bgcolor="316395">
<td colspan="2" height="47"><font color="#FFFFFF"><b>请您仔细并如实填写以下各项目:</b></font></td>
</tr>
<tr bgcolor="#6699CC" valign="middle">
<td width="25%" bgcolor="#6699CC"><font color="#FFFFFF">用户名:</font></td>
<td width="75%"> <font color="#FFFFFF">
<input type="text" name="UserName" maxlength="16" class="bk" size="25">
<br>(最长16位,由中文英文及数字组成) </font></td>
</tr>
<tr bgcolor="eeeeee" valign="middle">
<td width="113">密码:</td>
<td width="603">
<input type="password" name="password" maxlength="16" class="bk" size="25">
<br>(不可以包含" ’ " 和 " , "等字符!) </td>
</tr>
<tr bgcolor="#6699CC" valign="middle">
<td width="113"><font color="#FFFFFF">再输入一次密码:</font></td>
<td width="603">
<input type="password" name="PW_Again" maxlength="16" class="bk" size="25">
</td>
</tr>
<tr bgcolor="eeeeee" valign="middle">
<td width="113">电子邮件:</td>
<td width="603">
<input type="text" name="Email" size="25" maxlength="50" class="bk">
<br>(最常用的EMAIL地址,用于找回密码) </td>
</tr>
<tr bgcolor="#6699CC" valign="middle">
<td width="113"><font color="#FFFFFF">来自:</font></td>
<td width="603">
<input type="text" name="userfrom" size="25" maxlength="50" class="bk">
</td>
</tr>
<tr bgcolor="eeeeee" valign="middle">
<td width="113">Oicq:</td>
<td width="603">
<input type="text" name="Oicq" size="25" maxlength="15" class="bk">
</td>
</tr>
<tr bgcolor="#6699CC" valign="middle">
<td width="113"><font color="#FFFFFF">联系电话:</font></td>
<td width="603">
<input type="text" name="telphone" maxlength="20" size="25" class="bk">
</td>
</tr>
<tr bgcolor="eeeeee" align="center">
<td colspan="2" valign="top">
<input type="submit" name="ok" value="注 册" class="Tips_bo">
<input type="reset" name="Reset" value="清 除" class="Tips_bo">
</td>
</tr>
</table>
<input type="hidden" name="adduser" value="true">
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -