SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Guru
    Join Date
    Apr 2001
    Location
    BC, Canada
    Posts
    630
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is there a way to redirect a user to another page using php..or do i have to redirect using metatags?

    Thanx
    Ryan Lahay

  2. #2
    Not Bad, eh? Justin Sampson's Avatar
    Join Date
    Aug 2000
    Location
    N.S., Canada
    Posts
    487
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That's easy:

    PHP Code:
    <?
    $url 
    "http://www.somesite.com";
    header("Location: $url");
    ?>
    Make sure that nothing is printed before that, including white space, or you'll get an error.


Bookmarks

Posting Permissions

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