Re: redirect using php
| From: | Mark Kelly | Date: | Wed, 05 Apr 2006 13:19:24 +0000 |
| Subject: | Re: redirect using php | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-233254@lists.php.net to get a copy of this message | ||
On Wednesday 05 April 2006 13:55, Chris Shiflett wrote:
> Mark Kelly wrote:
> > You can also use something like:
> >
> > echo "<meta http-equiv=\"Refresh\"
> > content=\"0;url=$from_page\">";
>
> There's no need to use a meta tag to mimic HTTP headers. PHP provides
> the header() function.
I have been using that method when I got part-way through some processing
that produces output, and hit something that requires a redirect. As I
understand it headers are no use to me here.
I'm very much a beginner, so if this is the wrong way to do this, I'd
appreciate pointers. Thanks for the reply, either way.
Mark