Problem Statement:

Create a PHP script which validates username and password fields of a webpage. Username and password should be at least 6 characters.

Source Code:

ex5.html

ex5.php

Output:

Click here for output