Login

Hey everybody i got this news system made in php.
Now i want the form that will submit the new news items to be protected with a password login. Not with a popup windows prompt sign, just a login.php file that will ask for a username and password. I included my file that i want to protect with the login.
I also added a tutorial of a password protection that i need, but its says that you have to place the content in the script but i can not get it to work.

http://www.13dots.com/forum/index.php?showtopic=6472

Please can somebody help me with this.

Thanks in advance