[code]
<!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=utf-8">
<title>用户注册</title>
<script src="__PUBLIC__/Js/jquery.min.js" language="javascript"></script>
</head>
<body>
<form action="__URL__/add" method="post" id="form" name="form" onsubmit="return checkf()">
姓名:<input type="text" name="name" id="name"><br>
密码:<input type="password" name="pass" id="pass"><br>
重复密码:<input type="password" name="repass" id="repass"><br>
邮箱:<input type="text" name="mail" value="" id="mail"><br>
<br><input name="verify" type="text" style="height:23px; width:60px;" /> <img id="verifyImg" SRC="__APP__/Yzm/verify/" BORDER="0" ALT="" onclick="fleshVerify()" >
<input type="submit" value="注册" >
</form>
<script type="text/javascript" language="javascript">
function checkf(){
var obj1,obj2,obj3;
obj1=document.getElementById("name");
obj2=document.getElementById("pass");
obj3=document.getElementById("repass");
obj4=document.getElementById("mail");
if (obj1.value==""){
alert("姓名必填!!");
return false;
}else if(obj2.value==""){
alert("密码必填!!");
return false;
}else if(obj4.value==""){
alert("邮箱必填!!");
return false;
}else if(obj2.value!=obj3.value){
alert("两次密码不一致!!");
return false;
}
else{
return true;
}
}
function fleshVerify(){
//重载验证码
var timenow = new Date().getTime();
document.getElementById(‘verifyImg’).src= ‘__APP__/Yzm/verify/’+timenow;
}
</script>
<hr />
</body>
</html>
[/code]