📄 adduser.asp
字号:
<!--#INCLUDE FILE="conn.asp" -->
<!--#include file="ubbcode.asp" -->
<!--#include file="log_lib.asp" -->
<html>
<head>
<title>破废墟 Bloging... | 注册观员</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" type="text/css" href="styles.css">
<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 && !document.ADDUser.Email.value.match( /^.+@.+$/ ) ) {
alert("Email 错误!请重新输入");
document.ADDUser.Email.focus();
return false;
}
return true;
}
</script>
</head>
<body>
<table width="728" cellspacing="0" cellpadding="2">
<tr>
<td><p> </p>
<table width='650' border='0' cellspacing='1' cellpadding='4' align='center' bgcolor="#e2e2e2">
<tr>
<td bgcolor='#e2e2e2'><b>注册 IAMTING.COM 观员:</b></td>
</tr>
</table>
<table width="650" border="0" cellspacing="1" cellpadding="2" align="center" bgcolor="#e2e2e2">
<form name="ADDUser" method="post" action="user_action.asp" onSubmit="return CheckForm();">
<tr bgcolor="#f8f8f8">
<td width="12%" class="unnamed1">用户名</td>
<td width="88%">
<input type="text" name="UserName" class="bk">
<font color="#FF0000"> * </font></td>
</tr>
<tr bgcolor="#f8f8f8">
<td width="12%">密码</td>
<td width="88%">
<input type="password" name="password" class="bk">
<font color="#FF0000">* </font> </td>
</tr>
<tr bgcolor="#f8f8f8">
<td width="12%">密码确认</td>
<td width="88%">
<input type="password" name="PW_Again" class="bk">
<font color="#FF0000">* </font> </td>
</tr>
<tr bgcolor="#f8f8f8">
<td width="12%">E-Mail</td>
<td width="88%">
<input type="text" name="Email" class="bk">
</td>
</tr>
<tr bgcolor="#f8f8f8">
<td width="12%">E-Mail</td>
<td width="88%">
<input type="text" name="qq" class="bk">
</td>
</tr>
<tr bgcolor="#f8f8f8">
<td width="12%">个人主页</td>
<td width="88%">
<input type="text" name="homepage" class="bk">
</td>
</tr>
<tr bgcolor="#f8f8f8">
<td width="12%" valign="top">备注信息</td>
<td width="88%">
<textarea cols="60" name="underwrite" rows="6" class="bk" wrap="VIRTUAL"></textarea>
</td>
</tr>
<tr bgcolor="#f8f8f8">
<td width="12%"><br>
</td>
<td width="88%" height="40">
<input type="submit" name="Submit" value=" 注 册 ">
<input type="hidden" name="adduser" value="true">
</td>
</tr>
</form>
</table></td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -