Web Hosting Talk







View Full Version : Multiple PHP redirects.


Tomer
05-08-2005, 04:25 AM
Hello,

I need my script to redirect the page to multiple [a list of] URL's, one at a time. What's the best way for going about this?

- Thanks

intransit
05-08-2005, 05:12 AM
The basic redirection script is:
header("location:http://www.example.com");

I can't think of a way to do this with PHP, but it is probably possible with a small frame and a simple JavaScript redirect script pointing towards the main frame.

JieWei
05-08-2005, 05:44 AM
just to add to intransit, dun add header right after echo, it will not work.

azizny
05-08-2005, 10:32 AM
two ways:

header(same window) and window.open(different window)

in each one, the new window will check for which page it is and based on that it will redirect to the next one..

Peace,