Okay, heres the idiots guide for password protecting a page manually.
First of all, you need two files.
1. The file that has the form (Doesn't need to be PHP)
2. The file that the form gets send to (Must be PHP)
So first you want to create the form in the first file, like so:
Code:
<form method="post" action="The url of the second file">
All of your boxes for inputting data
</form>
Using post is more secretive and doesn't show the input in the URL. If you use get then your inputs will show in the URL.
Moving on...
Next, you need to make the script of the receiving file, like so:
Code:
<?
$password=$_POST["The name of the input you want to read"];
If ($password=="Whatever password "){
//Do this.... and that....
}
?>
Note: To assign an input a name you just do <input name="whatever name" />
Once all is in place it SHOULD work. If you have any further questions feel free to reply. Enjoy!