Re: redirect using php
| From: | Mark Kelly | Date: | Wed, 05 Apr 2006 08:44:56 +0000 |
| Subject: | Re: redirect using php | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-233233@lists.php.net to get a copy of this message | ||
On Tuesday 04 April 2006 22:27, Brady Mitchell wrote:
> > -----Original Message-----
> > In JSP I have access to a function called sendRedirect() to
> > send a user
> > from one page to another, usually after some processing completed. Is
> > there a similar function in PHP?
>
> Take a look at the header() function.
> http://php.net/header
>
> To redirect you can use: header("Location:
> http://www.example.com/");
You can also use something like:
echo "<meta http-equiv=\"Refresh\"
content=\"0;url=$from_page\">";
depending on your needs.
Mark