Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Website » How to put browser redirect into PHP
How to put browser redirect into PHP [message #17978] Thu, 20 July 2006 13:59 Go to next message
Beth Tibbitts is currently offline Beth TibbittsFriend
Messages: 231
Registered: July 2009
Senior Member
Denis,
how do i put a browser redirect into a phoenix ptp page?
I've poked around and can't tell if the samples I found would work
with phoenix. What do you recommend?
I know how to redirect an html page, you gave an example of that in the
phoenix intro material..

I named a page on our site and later decided to rename it,
but want the older newsgroup posts etc. to find it.

....Beth
Re: How to put browser redirect into PHP [message #17991 is a reply to message #17978] Thu, 20 July 2006 16:12 Go to previous message
Eclipse Webmaster is currently offline Eclipse WebmasterFriend
Messages: 607343
Registered: July 2009
Senior Member
Beth,

In your PHP page, simply have the following code:

<?php
header("Location: newpage.php");
// or header("Location: http://www.server.com/newpage.php");
?>

where newpage.php is the URL (relative or absolute) to the redirect.
This causes the server to send a 302 code to the browser; therefore, the
user's back button should work as expected.

D.


Beth Tibbitts wrote:
> Denis,
> how do i put a browser redirect into a phoenix ptp page?
> I've poked around and can't tell if the samples I found would work
> with phoenix. What do you recommend?
> I know how to redirect an html page, you gave an example of that in the
> phoenix intro material..
>
> I named a page on our site and later decided to rename it,
> but want the older newsgroup posts etc. to find it.
>
> ...Beth
Re: How to put browser redirect into PHP [message #569942 is a reply to message #17978] Thu, 20 July 2006 16:12 Go to previous message
Eclipse Webmaster is currently offline Eclipse WebmasterFriend
Messages: 607343
Registered: July 2009
Senior Member
Beth,

In your PHP page, simply have the following code:

<?php
header("Location: newpage.php");
// or header("Location: http://www.server.com/newpage.php");
?>

where newpage.php is the URL (relative or absolute) to the redirect.
This causes the server to send a 302 code to the browser; therefore, the
user's back button should work as expected.

D.


Beth Tibbitts wrote:
> Denis,
> how do i put a browser redirect into a phoenix ptp page?
> I've poked around and can't tell if the samples I found would work
> with phoenix. What do you recommend?
> I know how to redirect an html page, you gave an example of that in the
> phoenix intro material..
>
> I named a page on our site and later decided to rename it,
> but want the older newsgroup posts etc. to find it.
>
> ...Beth
Previous Topic:top Navbar tabs
Next Topic:Eclipse.org website to be easier to use!
Goto Forum:
  


Current Time: Fri Apr 26 11:58:37 GMT 2024

Powered by FUDForum. Page generated in 0.03086 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top