For Applying Validations using PHP. we have to first create a webpage using HTML for example here login page validation page is created in HTML.
<html>
<head>
<title>Login form</title>
</head>
<body bgcolor="yellow">
<form id="form1" method="POST" action="n.php">
<center><h1 ><font color="Blue" size="30px">Login Form</font></h1>
Enter Username: <input type="text" name="username" size="28" /> <br />
Enter Password: <input type="password" name="password" size="28" /> <br />
<input type="button" name="submit" value="submit" />
<input type="button" name="cancel" value="Cancel" />
</center>
</form>
</body>
</html>
For Learning How to give validations in the PHP.
Visit Website: PHP Training
<html>
<head>
<title>Login form</title>
</head>
<body bgcolor="yellow">
<form id="form1" method="POST" action="n.php">
<center><h1 ><font color="Blue" size="30px">Login Form</font></h1>
Enter Username: <input type="text" name="username" size="28" /> <br />
Enter Password: <input type="password" name="password" size="28" /> <br />
<input type="button" name="submit" value="submit" />
<input type="button" name="cancel" value="Cancel" />
</center>
</form>
</body>
</html>
For Learning How to give validations in the PHP.
Visit Website: PHP Training