#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    60
    Rep Power
    15
    Can PHP redirect to another page like ASP (Response.Redirect)?
  2. #2
  3. No Profile Picture
    Apprentice Deity
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Jul 1999
    Location
    Niagara Falls (On the wrong side of the gorge)
    Posts
    3,237
    Rep Power
    19
    You can pass a header to the client with the header() statment. In this case you would use:

    header("Location: <A HREF="http://someplace.else.com");" TARGET=_blank>http://someplace.else.com");</A>

    You CANNOT send anything else to the client before the header (HTML, print, echo, whitespace) except other headers.
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Location
    Niteroi, RJ, Brazil
    Posts
    30
    Rep Power
    15
    Talking about headers.....

    I read that META tags, sometimes, are not interpreted/repassed by firewalls or proxy, dunno exactly

    Do this Header(Location: http://www.devshed.com) works EVER?

    ------------------
    Eduardo Teixeira Cardoso
    PHP Programmer from Brazil
    idnotfound@vircio.com.br

    [This message has been edited by IdNotFound (edited August 27, 2000).]
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    60
    Rep Power
    15
    The server I'm using doesn't go through a proxy/firewall and it works. Thanks for your help.

Similar Threads

  1. redirect to another page
    By ivan447 in forum PHP Development
    Replies: 2
    Last Post: February 12th, 2004, 10:44 AM
  2. How to redirect to another page?
    By sdotsen in forum PHP Development
    Replies: 6
    Last Post: January 31st, 2004, 10:14 PM
  3. redirect to private page
    By FlyingFinn in forum PHP Development
    Replies: 4
    Last Post: January 18th, 2004, 07:08 AM
  4. Replies: 11
    Last Post: January 13th, 2004, 06:50 PM
  5. user login and redirect to the secret page!
    By mendsley in forum PHP Development
    Replies: 11
    Last Post: January 13th, 2004, 10:34 AM

IMN logo majestic logo threadwatch logo seochat tools logo