Returning to the previous page?

A

Anonymous

Guest
My form sends its contents to my PHP script. How can I grab the URL of the form page (I want to use the same form on several sites) and add it to the following?

Code:
<? echo '<META HTTP-EQUIV="Refresh" CONTENT="15; URL=http://www.mysite.com">';
?>

Any suggestions gratefully received. :)
 
Maybe like this:

Code:
$url = $_SERVER['HTTP_REFERER'];
echo '<META HTTP-EQUIV="Refresh" CONTENT="15; URL=". $url .">';
 
Back
Top