Re: redirect using php

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux