Click to See Complete Forum and Search --> : Returning to current page


novemberGrey
11-15-2006, 07:08 AM
Hey I have a newsletter subscription form on the side of each page in a site Im working on and I was wondering how to make it so when the user fills in that form and it sends the data it will return to the same page they are on.

scragar
11-15-2006, 07:14 AM
<?
if($_SERVER["HTTP_REFERER"] != ""){
http_redirect ($_SERVER["HTTP_REFERER"]);
exit;
};
?>

novemberGrey
11-15-2006, 01:34 PM
Im sorry I didnt explain it will enough, the form uses an external PHP script to process the data, so what can I put in the php script to tell it to return to the previous page after it has processed the data?

chazzy
11-15-2006, 02:07 PM
how do you get the site that sent you the page?

novemberGrey
11-15-2006, 02:27 PM
I dont understand your question