Re: redirect
| From: | O. | Date: | Mon, 24 Jul 2000 20:29:03 +0000 |
| Subject: | Re: redirect | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-7965@lists.php.net to get a copy of this message | ||
"Laura Carlson" <lcarlson@d.umn.edu> wrote in message
news:1284552.3173424955@lcarslon.d.umn.edu...
> Is there a way to redirect to a url after code or whitespace? I know
> that
> the header function doesn't work for this. It can not have anything
> printed to the screen prior
> to it.
>
> So how can you redirect from a place deep in the code?
The trick, generally, is not to have to. I dare say that if you have to
redirect deep in code, you're likely doing something wrong. Presenting a
link or button for the next page is going to save you some hassle, I'm
willing to bet.
You may be able to use a META tag to do what you're trying to do.
<META HTTP-EQUIV="refresh" CONTENT="5; URL=http://www.page.com/page.html">
<-- ripped shamelessly from htmlgoodies.com
(http://htmlgoodies.earthweb.com/tutors/dynamic5.html)
--
O.