Hi all,
Could someone please tell me how I can get the name of the script that made a call to a particular script. I need to know so that I can redirect back.
Cheers
SOL
$_SERVER['HTTP_REFERER']
Thanks loads. I just tried it and it is returning a null string. Any ideas.
Did you go straight to the address of the script or did you click on a link to get there?
It was from an included function. I am now using a session to great affect.
$_SESSION['referer'] = $_SESSION['source_page']; $_SESSION['source_page'] = "script.php";
Cheers again