
Need a login form with username, password, phone no, email id, date fields. We should specify the conditions for each field and if we press the submit button conditions of each field should appear. ex :*First name cannot be empty
Last Name cannot be empty
Email id cannot be empty
Password Cannot Be Empty
Conform Password cannot be empty
Phone Number Should Not Be Blank
if we given first name then first name cannot be empty should removed.
The submission should be uneven may be we can give date as first field and press submit submit button. I need this requirement pls help me out. thanx for answer

<html>
<script>
function validate(){
if(document.form.fname.value == ""){
alert( "First Name cannot be empty" );
document.form.fname.focus();
return false;
}
if(document.form.lname.value == ""){
alert( "Last Name cannot be empty" );
document.form.lname.focus();
return false;
}
if(document.form.email.value == ""){
alert( "Email cannot be empty" );
document.form.email.focus();
return false;
}
if(document.form.pass.value == ""){
alert( "Password cannot be empty" );
document.form.pass.focus();
return false;
}
if(document.form.cpass.value == ""){
alert( "Confirm Password cannot be empty" );
document.form.cpass.focus();
return false;
}
if(document.form.phone.value == ""){
alert( "Phone Number cannot be empty" );
document.form.phone.focus();
return false;
}
return true;
}
</script>
<form name="form" method="post" onsubmit="return validate();">
<table>
<tr><td>Enter First Name</td><td><input type="text" name="fname"></td></tr>
<tr><td>Enter Last Name</td><td><input type="text" name="lname"></td></tr>
<tr><td>Enter Email ID</td><td><input type="text" name="email"></td></tr>
<tr><td>Password</td><td><input type="password" name="pass"></td></tr>
<tr><td>Confirm Password</td><td><input type="password" name="cpass"></td></tr>
<tr><td>Enter Phone No</td><td><input type="text" name="phone"></td></tr>
<tr><td></td><td><input type="submit" value="Add" name="button"></td></tr>
</table>
</form>
</html>

Need a login form with username, password, phone no, email id, date fields. We should specify the conditions for each field and if we press the submit button conditions of each field should appear. ex :*First name cannot be empty
Last Name cannot be empty
Email id cannot be empty
Password Cannot Be Empty
Conform Password cannot be empty
Phone Number Should Not Be Blank
if we given first name then first name cannot be empty should removed.
The submission should be uneven may be we can give date as first field and press submit submit button. I need this requirement pls help me out. thanx for answer
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.