terreri
08-09-2006, 04:21 PM
Hi,
I'm new to PHP and was wondering how to code to go back to the previous page after executing a script. I was told to use the following command:
header("Location: " . $_SERVER['HTTP_REFERER']);
exit;
Is this the best way to do this? Is there another way?
Thanks!
I'm new to PHP and was wondering how to code to go back to the previous page after executing a script. I was told to use the following command:
header("Location: " . $_SERVER['HTTP_REFERER']);
exit;
Is this the best way to do this? Is there another way?
Thanks!