Re: Forwarding the user
| From: | (Richard Lynch) | Date: | Fri, 30 Jun 2000 21:17:49 +0000 |
| Subject: | Re: Forwarding the user | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-4156@lists.php.net to get a copy of this message | ||
In article <4.2.0.58.20000623080251.00a11940@mail.btinternet.com>,
adamcharnock@btinternet.com (Adam Charnock) wrote:
> Hi. Here is what I am trying to do:
> I have a page and I want to be able to forward the user to a different page
> when a script in the page is called. However, the headers were already set
> when the page was first opened so I don't think I can forward the user by
> using the location header. Does anyone know how this can be done?
Move the logic that figures out if they should be forwarded or not higher
up in your page, so it's before the headers get sent.
--
Richard Lynch | If this was worth $$$ to you, buy a CD
US Customer Support Director | from one of the artists listed here:
Zend Technologies USA | http://www.L-I-E.com/artists.htm
http://www.zend.com | (this has nothing to do with Zend,
duh!)