Forum Moderators: coopster
<form method="get" action="main.php">
<input type="hidden" name="verified" value="y" />
<input type="submit" value="I am Over 21" />
</form>
Then on top of your main.php (this should be your main page obviously):
<? $_SESSION['v'] == $_GET['v']; ?>
Then on the rest of your pages (including main.php underneath the code above).
<?
if ($_SESSION['v'] != 'y') {
header('Location: denypage.php');
}
?>
denypage.php is the page you want them to see if they are denied. You should be able to make somethin out of those snippets.