📄 regedit.jsp
字号:
<%@ include file = "../../config.jsp" %>
<%@ page contentType="text/html;charset=GBK"%>
<html>
<head>
<title>CWC大型购物商城</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../../style" rel="stylesheet" type="text/css">
<script language="javascript" src="../check.js"></script>
<script language="javascript">
function CheckForm(TheForm) {
trimform(TheForm);
if (TheForm.name.value == "") {
alert("请填写您的帐号!");
TheForm.name.focus();
return(false);
}
if (TheForm.pwd.value == "") {
alert("请填写您的密码!");
TheForm.pwd.focus();
return(false);
}
if ((TheForm.sex[0].checked + TheForm.sex[1].checked) == 0) {
alert("请选择您的性别!");
return(false);
}
if (!chknumber(TheForm.age.value) || TheForm.age.value.length > 2 || TheForm.age.value == "") {
alert("请正确填写您的年龄!");
TheForm.age.focus();
return(false);
}
if (!chkphone(TheForm.tel.value) || TheForm.tel.value == "") {
alert("请正确填写您的电话号码!");
TheForm.tel.focus();
return(false);
}
if (TheForm.address.value == "") {
alert("请填写您的地址!");
TheForm.address.focus();
return(false);
}
if (!chkemail(TheForm.email.value) || TheForm.email.value == "") {
alert("请正确填写您的邮件地址!");
TheForm.email.focus();
return(false);
}
return(true);
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
theURL += document.all.form1.account.value;
window.open(theURL,winName,features);
}
</script>
</head>
<body topmargin="0">
<%@ include file = "../../head.jsp" %>
<br>
<form name="form1" method="post" action="DealWithCenter.jsp" onSubmit="return CheckForm(this)">
<table width="770" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td bgcolor="#000000"><table width="100%" border="0" cellspacing="1" cellpadding="3">
<tr>
<td colspan="2" bgcolor="0099cc"><font color="#FFFFFF">会员注册</font></td>
</tr>
<tr>
<td bgcolor="#FFFFFF">帐 号:</td>
<td bgcolor="#FFFFFF"><input name="account" type="text" id="account">
[<a href="javascript:void(0)" onClick="MM_openBrWindow('DealWithCenter.jsp?action=check&account=','','width=200,height=100')"><font color=red>检测帐号</font></a>]
(只能使用英文和数字) </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">密 码:</td>
<td bgcolor="#FFFFFF"><input name="pwd" type="password"></td>
</tr>
<tr>
<td bgcolor="#FFFFFF">姓 名:</td>
<td bgcolor="#FFFFFF"><input name="name" type="text" id="name">
(请填写你的真实中文名) </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">性 别:</td>
<td bgcolor="#FFFFFF"><input type="radio" name="sex" value="1">
男
<input type="radio" name="sex" value="2">
女</td>
</tr>
<tr>
<td bgcolor="#FFFFFF">年 龄:</td>
<td bgcolor="#FFFFFF"><input name="age" type="text" id="age" size="10"></td>
</tr>
<tr>
<td bgcolor="#FFFFFF">电 话:</td>
<td bgcolor="#FFFFFF"><input name="tel" type="text" id="tel"></td>
</tr>
<tr>
<td bgcolor="#FFFFFF">地 址:</td>
<td bgcolor="#FFFFFF"><input name="address" type="text" id="address" size="50"></td>
</tr>
<tr>
<td bgcolor="#FFFFFF">电子邮件:</td>
<td bgcolor="#FFFFFF"><input name="email" type="text" id="email"></td>
</tr>
<tr align="center" valign="middle">
<td colspan="2" bgcolor="#FFFFFF"><input type="submit" name="Submit" value="注册">
<input type="button" name="Submit2" value="返回" onClick="history.back();"></td>
</tr>
</table></td>
</tr>
</table>
</form>
<%@ include file="../../foot.jsp"%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -