📄 reg.jsp~33~
字号:
<%@ page contentType="text/html; charset=GB18030" %>
<html>
<head>
<script language="javascript" type="text/javascript">
function accountAdd()
{
if(document.form.account.value=="")
{
window. alert("用户名不能为,请填写!");
document.form.account.focus();
return false;
}
if(document.form.password.value=="")
{
window.alert("密码不能为空,请填写!");
return false;
}
if(document.form.repeatPassword.value=="")
{
window.alert("请输入确认密码!");
return false;
}
if(document.form.repeatPassword.value!=document.form.password.value)
{
window.alert("请输入相同的密码!");
return false;
}
if(document.form.name.value=="")
{
window.alert("姓名不能为空,请填写!");
return false;
}
if(document.form.QQnumber.value=="")
{
window.alert("QQ号不能为空,请填写!");
return false;
}
if(document.form.mainPage.value=="")
{
window.alert("请输入你的主页地址!");
return false;
}
if(document.form.interest.value=="")
{
window.alert("请填写你的爱好!");
return false;
}
if(document.form.e.value=="")
{
window.alert("请输入你的email地址!");
return false;
}
var i=document.form.e.value.indexOf("@");
var j=document.form.e.value.indexOf(".");
if(i<0||j<0||(i-j>0)){
window.alert("你的email地址错误!请重写!");
return false;
}
}
</script>
<title>
reg
</title>
</head>
<body>
<table width="825" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="435" height="200"><img src="myimage/11a.jpg" width="825" height="200" alt=""/></td>
</tr>
</table>
<table width="825" border="1 " align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="791" height="532" style="background=myimage/3.jpg;" >
<form name="form" method="post" onSubmit="return accountAdd()"action="regAction.do">
<table width="476" border="0" align="center" bgcolor="#5B60AA">
<tr>
<td width="95" height="23"><strong>用户名:</strong></td>
<td width="340"><input name="account" type="text" class="inputinput STYLE1" size="25"></td>
</tr>
<tr>
<td height="20"><strong>密码:</strong></td>
<td><input name="password" type="password" class="inputinput " size="40"></td>
</tr>
<tr>
<td height="18"><strong>确认密码:</strong></td>
<td><input name="repeatPassword" type="password" class="inputinput " size="40"></td>
</tr>
<tr>
<td height="18"><strong>姓名:</strong></td>
<td><input name="name" type="text" class="inputinput " size="40"></td>
</tr>
<tr>
<td height="22"><strong>性别:</strong></td>
<td><strong>
<input name="sex" type="radio" class="inputinputinput" value="男" checked>
男
<input name="sex" type="radio" class="inputinputinput" value="女">
女 </strong></td>
</tr>
<tr>
<td height="18"><strong>QQ号码:</strong></td>
<td><input name="QQnumber" type="text" class="inputinput " size="40"></td>
</tr>
<tr>
<td height="18"><strong>主页:</strong></td>
<td><input name="mainPage" type="text" class="inputinput " size="40"></td>
</tr>
<tr>
<td height="19"><strong>兴趣:</strong></td>
<td><input name="interest" type="text" class="inputinput " size="40"></td>
</tr>
<tr>
<td height="23"><strong>E-mail:</strong></td>
<td><input name="e" type="text" class="inputinput " size="40"></td>
</tr>
<tr>
<td height="28" colspan="2" align="center">
<input type="image" class="inputinputinput" src="myimage/save.gif" alt="">
<img src="myimage/reset.gif" alt="">
<img src="myimage/back.gif" alt=""> </td>
</tr>
</table>
</form> </td>
</tr>
</table>
<table width="825" border="0" align="center" cellpadding="0" cellspacing="0" background="myimage/down5.jpg">
<tr>
<td width="435" height="69"> </td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -