📄 useradd.asp
字号:
<!--#include File="../conndb.asp"-->
<html>
<head>
<link rel="stylesheet" href="../style.css">
<title>用户注册</title>
</head>
<script Language="JavaScript">
function ChkFields() {
if (document.myform.userid.value=='') {
window.alert ("请输入用户名!")
myform.userid.focus()
return false
}
if (document.myform.userid.value.length<=2) {
window.alert ("请用户名长度必须大于2!")
myform.userid.focus()
return false
}
if (document.myform.username.value=='') {
window.alert ("请输入用户姓名!")
myform.username.focus()
return false
}
if (document.myform.email.value=='') {
window.alert ("请输入电子邮箱!")
myform.email.focus()
return false
}
if (document.myform.pwd.value.length<6) {
window.alert ("新密码长度大于等于6!")
myform.pwd.focus()
return false
}
if (document.myform.pwd.value=='') {
window.alert ("请输入新密码!")
myform.pwd.focus()
return false
}
if (document.myform.pwd1.value=='') {
window.alert ("请确认新密码!")
myform.pwd1.focus()
return false
}
if (document.myform.pwd.value!=document.myform.pwd1.value) {
window.alert ("两次输入的新密吗必须相同!")
return false
}
return true
}
</script>
<body>
<form method="POST" action="UserSave.asp" name="myform" onSubmit="return ChkFields()">
<h3></h3>
<p align="center">个人信息</p>
<input type="hidden" name="isadd" value="new">
<table align="center" border="1" cellpadding="1" cellspacing="1" width="100%" bordercolor="#008000" bordercolordark="#FFFFFF">
<tr>
<td width="18%" align=left bgcolor="#FFCCFF">用户名</td>
<td width="82%"><input type="text" name="userid" size="20"></td>
</tr>
<tr>
<td align=left bgcolor="#FFCCFF">用户姓名</td>
<td><input type="text" name="username" size="20"></td>
</tr>
<tr>
<td align=left bgcolor="#FFCCFF">用户密码</td>
<td><input type="password" name="pwd" size="20"></td>
</tr>
<tr>
<td align=left bgcolor="#FFCCFF">密码确认</td>
<td><input type="password" name="pwd1" size="20"></td>
</tr>
<tr>
<td align=left bgcolor="#FFCCFF">性别</td>
<td><select name="sex">
<option value="0">男</option>
<option value="1">女</option>
</select></td>
</tr>
<tr>
<td align=left bgcolor="#FFCCFF">通信地址</td>
<td><input type="text" name="address" size="40"></td>
</tr>
<tr>
<td align=left bgcolor="#FFCCFF">邮政编码</td>
<td><input name="postcode" type="text" id="postcode" size="40"></td>
</tr>
<tr>
<td align=left bgcolor="#FFCCFF">联系电话</td>
<td><input type="text" name="telephone" size="40"></td>
</tr>
<tr>
<td align=left bgcolor="#FFCCFF">手机</td>
<td><input type="text" name="mobile" size="40"></td>
</tr>
<tr>
<td align=left bgcolor="#FFCCFF">工作单位</td>
<td><input name="company" type="text" id="company" size="40"></td>
</tr>
<tr>
<td align=left bgcolor="#FFCCFF">电子邮箱</td>
<td><input type="text" name="email" size="40"></td>
</tr>
<tr>
<td align=left bgcolor="#FFCCFF">生日(yyyy-mm-dd)</td>
<td><input name="birthday" type="text" id="birthday" size="40"></td>
</tr>
</table>
<p align="center"><input type="submit" value=" 提 交 " name="B2"></p>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -