PHP and Redirect
Posted 21 August 2006 - 07:18 PM
If I redirect HTML page using the <META EQUIV-HTTP="Refresh"...etc> What are my options of retreiving the source URL before the redirection. Any help would be appreciated.
PS: $_SERVER['REFERRER'; Is an empty string after redirecting.
Posted 21 August 2006 - 07:29 PM
Then you can carry it over to the next script by attaching it to the redirect url as a GET ("?src=$_SERVER[REQUEST_URI]") or store it in $_SESSION.
Posted 21 August 2006 - 07:35 PM
For solution 1: Unfortunately, the source page is HTML (Static), however, what I need is the source url (the info I need is in it). and
altering Apache to hanle html as php is not the most feasible at the moment.
For Solution 2: HTTP_REFERRER is an empty string if redirected because the referrer would be the browser itself.
Any more suggestions? Thanks in advance
Posted 21 August 2006 - 09:06 PM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users