Save this form on a page called login.php
Now you will need to put this in the page you with to protect.
The form above is protecting 'index.php'; if its
anything else please change the
form action in the above form.
Put the above code at the top of your index.php page.
Now if the username and password is right you wil be allowed
access, but what if incorrect login is submitted?
Simple add the following code at the bottom.
print "You have entered the wrong username or