📄 zhuce.jsp~91~
字号:
<%@page contentType="text/html; charset=gb2312"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>注册</title>
<script language="JavaScript" type="text/JavaScript">
function jiance(){
userCode=document.form1.userCode.value;
window.location.href="zhucejiance.jsp?userCode="+userCode;
}
function test()
{
if(document.form1.userCode.value.length==0)
{
alert("请您输入ID号!");
document.form1.userCode.focus();
return false;
}
if(document.form1.userPW.value.length<4||document.form1.userPW.value.length>16)
{
alert("请您输入密码!密码该由4-16位数字组成");
document.form1.userPW.focus();
return false;
}
if(document.form1.userName.value.length==0)
{
alert("请输入您的姓名!");
document.form1.userName.focus();
return false;
}
if(document.form1.shenFenZheng.value.length!=18)
{
if(document.form1.shenFenZheng.value.length!=15)
{
alert("请您输入身份证号必须为18位或15位数字");
document.form1.shenFenZheng.focus();
return false;
}
}
if(isNaN(document.form1.shenFenZheng.value))
{
alert("请您输入身份证号必须为18位或15位数字");
document.form1.shenFenZheng.focus();
return false;
}
var reg = /^((0[1-9]0|0\d{3})-)?\d{7,8}$/;
if(document.form1.telephone.value.match(reg)){}
else{
alert("请输入您真实的坐机电话,格式如0739-7250364");
document.form1.telephone.focus();
return false;
}
if(document.form1.address.value.length==0)
{
alert("请填写您的有效地址");
document.form1.address.focus();
return false;
}
if(document.form1.youZhengBianMa.value.length==0)
{
alert("请填写您的有效邮政编码");
document.form1.youZhengBianMa.focus();
return false;
}
if(isNaN(document.form1.youZhengBianMa.value))
{
alert("请填写您的有效邮政编码应该为数字才对");
document.form1.youZhengBianMa.focus();
return false;
}
if(document.form1.email.value.length==0||document.form1.email.value.indexOf("@",0)==-1)
{
alert("请正确填写您的安全Email,如exit@163.com");
document.form1.email.focus();
return false;
}
return true;
}
</script>
<style type="text/css">
<!--
.style1 {font-weight: bold}
-->
</style>
</head>
<body background="photo/zhuce.jpg">
<form name="form1" method="post" action="shenQingChuLi.jsp" onsubmit="return test()">
<div align="center">
<table width="517" height="415" border="0">
<tr>
<td colspan="2"><div align="center">
<input name="imageField" type="image" src="photo/shenqinghuiyuan.jpg" width="77" height="22" border="0">
</div></td>
<td> </td>
</tr>
<tr>
<td width="47"><input name="imageField" type="image" src="photo/userId.jpg" width="77" height="22" border="0"></td>
<td width="168"><input name="userCode" type="text" id="userCode" maxlength="20"></td>
<td><a href="javascript:jiance()" ;>点击检测用户名是否存在</a></td>
</tr>
<tr>
<td><input name="imageField" type="image" src="photo/userPW.jpg" width="77" height="22" border="0"></td>
<td><input name="userPW" type="password" id="userPW" maxlength="20"></td>
<td><SAMP class="style4 style1">[必须在4-16个字符之间]</SAMP></td>
</tr>
<tr>
<td colspan="3" ><SAMP class="style4 style1"><h5 ><strong>请您详细填写以下内容,方便我们即使与您取得联系</strong></h5>
</SAMP></td>
</tr>
<tr>
<td><input name="imageField" type="image" src="photo/name.jpg" width="77" height="22" border="0"></td>
<td><input name="userName" type="text" id="userName" maxlength="30"></td>
<td><SPAN class=style1><SAMP class=style4>[请留下真实姓名,方便与您联系为您发货]</SAMP></SPAN></td>
</tr>
<tr>
<td><input name="imageField" type="image" src="photo/shenfenzhenghao.jpg" width="77" height="22" border="0"></td>
<td><input name="shenFenZheng" type="text" id="shenFenZheng" maxlength="20"></td>
<td><SPAN class=style1><SAMP class=style4>[请照实填写]</SAMP></SPAN></td>
</tr>
<tr>
<td><input name="imageField" type="image" src="photo/telphone.jpg" width="77" height="22" border="0"></td>
<td><input name="telephone" type="text" id="telephone" maxlength="25"></td>
<td><SAMP class="style4 style1">[请填写能与您随时取得联系的电话,方便与您联系]</SAMP></td>
</tr>
<tr>
<td><input name="imageField" type="image" src="photo/address.jpg" width="77" height="22" border="0"></td>
<td><input name="address" type="text" id="address" maxlength="100"></td>
<td><SAMP class="style4 style1">[请详细填写收货地址,以便我们尽快将您的商品送达]</SAMP></td>
</tr>
<tr>
<td><input name="imageField" type="image" src="photo/youzheng.jpg" width="77" height="22" border="0"></td>
<td><input name="youZhengBianMa" type="text" maxlength="20"></td>
<td><SAMP class="style4 style1">[请详细填写邮政编码,以便我们尽快将您的商品送达]</SAMP></td>
</tr>
<tr>
<td><input name="imageField" type="image" src="photo/Email.jpg" width="77" height="22" border="0">
<td><input name="email" type="text" maxlength="30"></td>
<td><SAMP class="style4 style1">[请填写您的安全邮箱]</SAMP></td>
</tr>
<tr>
<td> </td>
<td><input type="submit" name="Submit" value="提交">
<input name="Submit2" type="reset" id="Submit2" value="重置">
<input name="Submit1" type="button" id="Submit1" value="检测" onclick="test()"></td>
<td> </td>
</tr>
</table>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -