Share
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Aviance School is one of the largest web solutions platform in India for developers to learn and share their programming knowledge and build their careers.
<form name="f1" method="post" action="result.php" onsubmit="return passwordvalidate()" >
Password: <input type="password" name="pass"><br/>
Retype Password: <input type="password" name="repass"><br/>
<input type="submit" value="Register">
</form>
<script type="text/javascript">
function passwordvalidate(){
var pass=document.f1.pass.value;
var repass=document.f1.repass.value;
if(pass==repass){
return true;
}
else{
alert("Password and Retype Password must be same!");
return false;
}
}
</script>