注册问题
为什么密码输入一至,还提示密码不一至,为什么呢着急呀,不知道哪错了,高手帮忙看看哪有问题,谢过<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>用户注册</title>
<script language="javaScript">
function isValid(form){
if(form.user_id.value==""){
alert("用户名不能为空");
return false;
}
else if((form.password.value.length<3 )|| (form.password.value.length>8)){
alert("密码必须是3 至8位");
return false;
}
else if (form.re_password.vaule!=form.password.value){
alert("密码不一致");
return false;
}
else if((form.e_mail.value=="")||(form.e_mail.value.indexOf('@',0)==-1)||(form.e_mail.value.length<6)){
alert("请输入合法的E—MAIL地址");
return false;
}
else
{
return true;
}
}
</script>
</head>
<body>
<%@include file="top.jsp" %>
<center>
<br>
<% String getmessage=(String) session.getValue("register_message");
if(getmessage==null) getmessage=""; %>
<%= getmessage %>
<p> 请输入你的个人信息(标注*的内容是必填项)</p>
<form method=post action="register_confirm.jsp" onSubmit=" return isValid(this);" >
<table width="25%" border="2">
<tr>
<td align='left' colspan='2'> <p> 用户名:
<input type="text" name="user_id"> *</td>
</tr>
<tr>
<td align='left' colspan='2'> <p> 密码:
<input type='password' name="password" size='8' maxlength='8'> *</td>
</tr>
<tr>
<td align='left' > <p> 确认密码:
<input type='password' name="re_password" size='8' maxlength='8'> *</td>
</tr>
<tr>
<td align='left' ><p> Email:
<input type="text" name="e_mail" size="30 maxlength=30"> *</td>
</tr>
</table>
<br>
<input type="submit" size="4" value="立即注册">
</form>
</center>
<%@ include file="bottom.jsp" %>
</body>
</html>