here is the ordeal:
on index.php
<?php
session_start();
$url = $_SERVER['HTTP_REFERER'];
$_SESSION['abc'] ='$url';
?>
i echo on the page $_SERVER['HTTP_REFERER'];
and i get what i want
later on site i have a reservation page and i use the session to
<?php
session_start();
if (isset($_SESSION['abc'])) {
echo $_SESSION['abc'];
}
else {
echo 'error';
}
?>
it echo's error and i'm confused why the data isn't passing..
Any idea's from the php gurus out there, thanks. Just want it to print the HTTP_REFERER