Menu
Hi there.. I currently have this code
[code=php]
<?php
session_start();
if($_SESSION[‘User_Type’] == ‘leader’)
{
header(‘Location: LeaderMain.php’);
}
else
{
header(‘Location: ExplorerMain.php’);
}
?>
I would like it to be – If user type is leader then go to leadermain.php, If user type is explorer go to explorermain.php else go to error.php