// you can type anything here

//admin

this here is just a simple user login page, if you enter the right password, it will take you to the password protected page. the thing about this though is that you only need to type in a correct password, you can type in anything for the username and it will still work. It's pretty easy to change it, but I just wanted to keep it simple. in V2 it will be diffrent.

Code to script:

<?php
if ($_POST['Submit'] AND $_POST['pass'] == "admin")
{
echo "welcome to the password protected page";
}
else
{
echo "get out of here!";
}
?>
almost too simple!

you can change the password by changing "admin" to anything you like, just make sure it's surrounded in "quotations".

v2 coming soon!

Download

back to knight47.com