Results 1 to 4 of 4
Thread: Multiple PHP redirects.
-
05-08-2005, 04:25 AM #1WHT Addict
- Join Date
- Oct 2003
- Location
- Israel
- Posts
- 133
Multiple PHP redirects.
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
-
05-08-2005, 05:12 AM #2Junior Guru Wannabe
- Join Date
- Jan 2005
- Posts
- 46
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.
-
05-08-2005, 05:44 AM #3Newbie
- Join Date
- May 2005
- Location
- Singapore
- Posts
- 12
just to add to intransit, dun add header right after echo, it will not work.
-
05-08-2005, 10:32 AM #4Web Hosting Master
- Join Date
- Mar 2004
- Location
- USA
- Posts
- 4,345
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,Testing 1.. Testing 1..2.. Testing 1..2..3...