<html>
<head><title></title>
<!--//定义脚本代码,负责检查输入数据的合法性-->
<script language="JavaScript" >
function isValid(form)
{
/*alert("登录名不能为空!");
return false;*/
if(form.user_id.value=="")
{
alert("没有输入");
return false;
}
else if ((form.pas.value.length<3)||(form.pas.value.length>8))
{
alert("密码必须是3-8位字母或数字!");
return false;
}
else if(form.pas.value!=form.repas.value)
{
alert("the two time your input password not same.");
return false;
}
else if((form.e_mail.value=="")||(form.e_mail.value.indexOf('@',0)==-1)||(form.e_mail.value.indexOf('.',0)==-1)||(form.e_mail.value.length<6))
{
alert("请输入合法的E_mail地址!")
return false;
}
else return true;
}
</script>
</head>
<body background="008.jpg" text="#FFFFFF">
<center><br>
<h3><font color="blue">请在此输入人的注册信息(标记‘*’的内容必须填写)</font></h3>
<form method=post action="register_confim.jsp" OnSubmit="return isValid(this);">
<table width="85%" border="2">
<tr>
<td align="left"><p><font color="blue">登录名:</font></p></td>
<td><input type="text" name="user_id"> <font color="blue">*</font></td>
</tr>
<tr>
<td align="left"><p><font color="blue">密码: </font></p></td>
<td><input type="password" size="8" maxlength="8" name="pas"> <font color="blue">*</font></td>
</tr>
<tr>
<td align="left" ><p><font color="blue">确认: </font></p></td>
<td><input type="password" size="8" maxlength="8" name="repas"> <font color="blue">*</font></td>
</tr>
<tr>
<td align="left"><p><font color="blue">个人简介 </font></p></td>
<td align="left"><textarea name="body" rows=10 cols=40></textarea></td>
</tr>
<tr>
<td align="left" ><p><font color="blue">Email: </font></p></td>
<td ><input type="text" name="e_mail" size="30" maxlength="30" > <font color="blue">*</font></td>
</tr>
</table>
<br>
<input type="submit" value="提交">
<input type="reset" value="复位">
</form>
</center>
</body>
</html>