View Single Post
Old 08-04-2009, 08:02 PM   #5 (permalink)
Pudge1
Junior Member
 
Join Date: Aug 2009
Posts: 13
Reputation: 1
Pudge1 is an unknown quantity at this point

cBay Rating:
Default

You'll probably need to use cookies on the second page to make sure no one finds it and just goes to it without the password for example.

index.htm
Code:
<html>
<head>
<title></title>
</head>
<body>
<form action="page2.php" method="post">
Word: <input type="text" name="word"><br />
<input type="submit" value="Submit" />
</form>
page2.php
Code:
<?
if($_POST['word'] == 'correct word here')
{
setcookie("cookie","cookievalue");
echo '<meta http-equiv="refresh" content="0;URL=page3.php" />';
}
else
{
echo "Wrong password intruder gtfo";
}
?>
page3.php
Code:
<?
if($_COOKIE['cookie'] == 'cookievalue')
{
}
else
{
echo "You have not entered the <a href='index.htm'>word</a> yet</a>";
exit;
}
?>
//Page contents here
?>
That work?
Pudge1 is offline   Reply With Quote