?? 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.address.value=='') {
window.alert ("請輸入送貨詳細地址!")
myform.address.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 align=left bgcolor="#E1F5FF">用戶名</td>
<td><input type="text" name="userid" size="20"></td>
</tr>
<tr>
<td align=left bgcolor="#E1F5FF">用戶姓名</td>
<td><input type="text" name="username" size="20"></td>
</tr>
<tr>
<td align=left bgcolor="#E1F5FF">用戶密碼</td>
<td><input type="password" name="pwd" size="20"></td>
</tr>
<tr>
<td align=left bgcolor="#E1F5FF">密碼確認</td>
<td><input type="password" name="pwd1" size="20"></td>
</tr>
<tr>
<td align=left bgcolor="#E1F5FF">性別</td>
<td><select name="sex">
<option value="0">男</option>
<option value="1">女</option>
</select></td>
</tr>
<tr>
<td align=left bgcolor="#E1F5FF">聯系電話</td>
<td><input type="text" name="telephone" size="40"></td>
</tr>
<tr>
<td align=left bgcolor="#E1F5FF">手機</td>
<td><input type="text" name="mobile" size="40"></td>
</tr>
<tr>
<td align=left bgcolor="#E1F5FF">電子郵箱</td>
<td><input type="text" name="email" size="40"></td>
</tr>
<tr>
<td align=left bgcolor="#E1F5FF">送貨地址</td>
<td>
<textarea rows="3" cols="40" name="address"></textarea></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 + -