| Code:
|
<?php
$input=$_POST["password"];
include("includes/config.php");
if($input==$password)
{
$page="includes/access.php";
}
else
{
if ($input=="")
{
$page="includes/form.php";
}
else
{
echo "Incorrect password. Try again.";
$page="includes/form.php";
}
}
?>
<html>
<head>
<title>
<?php
echo "$index";
?>
</title>
<link href="css/index.css" rel="stylesheet" type="text/css" />
<?php
include($page);
?>
</head>
<body>
</body>
</html>
|