[PHP] Redirect with referer info

2005-07-30 Thread Dotan Cohen
Hi list, I need to redirerect a page, and send the referer information along with the redirect. I have tried: header(Location: $url); and printhtmlheadmeta http-equiv='refresh' content='0; URL=$url' //head/html; Both of them redirect as expected, but the browser (Firefox and Opera) do not send

Re: [PHP] Redirect with referer info

2005-07-30 Thread Matt Darby
Dotan Cohen wrote: Hi list, I need to redirerect a page, and send the referer information along with the redirect. I have tried: header(Location: $url); and printhtmlheadmeta http-equiv='refresh' content='0; URL=$url' //head/html; Both of them redirect as expected, but the browser (Firefox and

Re: [PHP] Redirect with referer info

2005-07-30 Thread Joe Wollard
To obtain a certain portion of the referring url you might look at parse_url(); See http://us3.php.net/manual/en/function.parse-url.php - or - If you want to bounce the user right back to the previous page including get variables you could just use this snippet. ?php $referrer =

Re: [PHP] Redirect with referer info

2005-07-30 Thread Dotan Cohen
On 7/30/05, Joe Wollard [EMAIL PROTECTED] wrote: To obtain a certain portion of the referring url you might look at parse_url(); See http://us3.php.net/manual/en/function.parse-url.php - or - If you want to bounce the user right back to the previous page including get variables you could