I'm a bit rusty as this isn't working.
You must go thru index.php to get to access.php
Trying to set session on index.php and check for it in access.php
If the session's not there in access.php, it returns to the index.php
I think I'm getting lost.
Thanks for the help.
below is index.php
<form method="post" action="access.php"><button style="width: 400px; height: 90px; border: 15px dotted lime; font: bold 50px courier new; color: lime; text-decoration: none; cursor: pointer" onclick="submit(this);">Access<br>Granted</button><input type="hidden" name="access" value="access"></form>
below is access.php
<?php
session_start();
$_SESSION["access"] = $_POST["access"];
$access = $_SESSION["access"];
if(isset($access)) {
echo "<html>
<head>
<title>Art Films & Videos</title>
</head>
<body style='font: bold 16px courier new; color: #efcb89; background-color: #000000; text-align:center'>
content here</body></html>";
}
else {
header ("Location: index.php");
}
?>
PS - Hey...I got it working now...but is this right? Still seems wrong...
Thanks