Hi i'm trying to match these to URL's and if they match they need to direct the user to the login page
can anyone see a reason why this wouldn't work?
thanks
Code:
<?php
extract($_COOKIE);
#echo "databaseuser = $databaseuser <BR>";
#echo $_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'];
$uri = $_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'];
$myurl1 = "test.url.net/other_pages/events.php";
if (((!$databaseuser) && ($uri == $myurl1)))
{
header("Location: [URL unfurl="true"]http://test.url.net/other_pages/notloggedin.php");[/URL]
}
?>
can anyone see a reason why this wouldn't work?
thanks