
08-09-2006, 05:21 PM
|
|
SEO Junior
|
|
Join Date: Sep 2004
Posts: 29
|
|
Header Location Question
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!
|