📄 register.jsp
字号:
<html>
<head>
<%@ page contentType="text/html; charset=gb2312"%>
<title>注册用户</title>
<!--
.style1 {font-size: 14px}
.style2 {
color: #0000FF;
font-size: 36px;
}
.style3 {color: #FF0000}
.style4 {color: #FF0000; font-size: 14px; }
body {
background-color: #00FFFF;
}
.STYLE5 {font-size: 24px; }
-->
</style>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"><style type="text/css">
<!--
body {
background-color: #000000;
}
.style1 {color: #FF0000}
.style2 {color: #FFFF00}
.style3 {color: #0000FF}
.style4 {font-size: 36px}
.style5 {font-family: "华文琥珀"}
.style6 {font-size: 24px}
.style7 {font-size: 12px}
.style8 {color: #FF0000; font-size: 12px; }
.style9 {color: #00FF00}
.STYLE10 {color: #000000}
-->
</style></head>
<script language="javascript" >
<!--
function chek()
{
window.location.href="register.jsp"
if(form1.name.value=="")
{
alert("请输入用户名!");
return(false);
}
if (form1.pass.value=="" || form1.pass1.value=="")
{ alert("请输入密码!");
return(false);
}
if (form1.pass.value!= form1.pass1.value)
{ alert("两次密码不一致!");
return(false);
}
if (form1.mail.value.indexOf("@",0) == -1)
{ alert("mail格式不对!");
return(false);
}
return(true);
}
-->
</script>
<body>
<div align="center">
<table width="506" height="202" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="506"><p align="center" class="style3 style4 style5">欢迎您注册<span class="style9">KINGSTAR</span>网上书店</p>
<p align="center" class="style1 style6">带*号必填</p>
<form name="form1" method="post" action="register_confirm.jsp" onSubmit="chek()">
<p align="left" class="style1 style7"><span class="style2">用 户 名</span>
<input name="name" type="text" id="t1">
<span class="style1">*1-16位的数字和字母组成</span></p>
<p align="left" class="style8"><span class="style3 style3 style2 style2 style3 style2 style3 style3 style2 style3 STYLE10"><span class="style2">密 </span> <span class="style2"> 码</span></span>
<input name="pass" type="password" id="t2">
<span class="style1">*由18位数字字母和简单符号组成</span></p>
<p align="left" class="style8"><span class="style2">确认密码</span>
<input name="pass1" type="password" id="t3">
* 确认密码必须和密码一致</p>
<p align="left" class="style8"><span class="style2">性 别</span> <span class="style2">
<input type="radio" name="sex" value="m">
男 </span>
<span class="style2">
<input type="radio" name="sex" value="f">
女</span></p>
<p align="left" class="style8"><span class="style2">出生日期</span>
<input name="birthday" type="text" id="t4">
<span class="style1">如1980/01/01</span></p>
<p align="left" class="style8"><span class="style2">邮箱地址</span>
<input name="mail" type="text" id="t5">
<span class="style1">* </span> </p>
<p align="left" class="style8"><span class="style2">联系地址</span>
<input name="address" type="text" id="t6">
</p>
<p align="left" class="style8"><span class="style2">联系电话</span>
<input name="phone" type="text" id="t7">
</p>
<p align="left" class="style1">
<input name="Submit" type="submit" value="注册">
</p>
<p align="left" class="STYLE5"><a href="login.jsp" class="style6">返回首页</a></p>
<p align="left"> </p>
</form>
<p> </p> <div align="center"></div></td>
</tr>
<tr>
<td><div align="center"></div></td>
</tr>
</table>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -