here is my code for 1st page
Code: Select all
session_start();
$_SESSION['pass']="allow";
echo "<a href='page2.php'>click for page 2</a>"Code: Select all
if ($_SESSION['pass'] != "allow") { echo"Cannot call from that page";exit;
}else {
echo"this is page2";}Im new at this sorry for the dumb question.