0

For validations password

can any one give me perfect validation for login form plzz see my login page form "tmail7" plzzzzz helppp mee

19th Dec 2016, 3:04 PM
Dharmesh Shukla
Dharmesh Shukla - avatar
1 Respuesta
+ 3
<!DOCTYPE html> <html> <head> <script> function validateForm() { var x = document.forms["myForm"]["fname"].value; if (x == "") { alert("Name must be filled out"); return false; } } </script> </head> <body> <form name="myForm" action="demo_form.asp" onsubmit="return validateForm()" method="post"> Name: <input type="text" name="fname"> <input type="submit" value="Submit"> </form> </body> </html> <!--taken from w3school-->
19th Dec 2016, 7:38 PM
Valen.H. ~
Valen.H. ~ - avatar