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 validate()" >
Full Name: <input type="text" name="name"><br/>
Password: <input type="password" name="pass"><br/>
<input type="submit" value="Register">
</form>
<script type="text/javascript">
function validate(){
var name=document.f1.name.value;
var pass=document.f1.pass.value;
if (name==null || name==""){
alert("Please enter your name.");
return false;
}else if(pass.length<6){
alert("Password must be at least 6 characters.");
return false;
}
}
</script>