Re: header & http referer
| From: | Rasmus Lerdorf | Date: | Thu, 22 Jun 2000 17:07:13 +0000 |
| Subject: | Re: header & http referer | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-2660@lists.php.net to get a copy of this message | ||
> Yes, I have been wondering again, and I was wondering:
>
> If a script.php calls for a header redirection, and redirects to
> index.php, can index.php do some functions and head back to
> script.php... $HTTP_REFERER didn't work...
Don't think so. It is the browser that does the redirect, and if it
doesn't tell you where it came from, you are out of luck. Unless of
course you provide this information yourself by doing something like:
Location: http://domain.com/index.php?prev_page=this.php
> Also, are there any other ways do to redirecting other than header...
> and can you make a refresh function so that it can be called only when
> needed? (without using the meta refresh method)
Not really.
-Rasmus