Simple password
script
This tutorial will show you how to protect your
file **THIS ISN'T
SAFE WE RECOMMEND USING SESSIONS, Look for the
tutorial soon**
<? config password
if ($_POST['password'] == "MY
PASSWORD") {
include ("proceed.php");
//this is where you will go
}
else { //Error message if password is wrong
echo "Error wrong password provided!";
}
?>
This first bit is
just a simple HTML form.
The second bit
checks if the password provided is correct, if
not it echo a ERROR message if its correct then
it will proceed on to proceed.php.