Results 1 to 4 of 4
  1. #1
    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

  2. #2
    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.

  3. #3
    Join Date
    May 2005
    Location
    Singapore
    Posts
    12
    just to add to intransit, dun add header right after echo, it will not work.

  4. #4
    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...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •