How To Linkto A Php Page From Another Php Page

Discussion in 'PHP' started by rrn, Mar 8, 2009.

  1. #1
    HI...

    in my website there's a page for sending mails...after sending the mail, the page should direct to a "new.php" page..
    ie at present i am on the careers.php page, wen i click the "apply" button,the mail will be send and it should direct to a 'new.php' page.. how ca i write the code for tat???
    pls give me a solution... thanks for ur help....
     
    rrn, Mar 8, 2009 IP
  2. Jet

    Jet Peon

    Messages:
    73
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    if ($variable == "putstuffhere"){
    header("Location: new.php");
    }
     
    Jet, Mar 9, 2009 IP
  3. rrn

    rrn Peon

    Messages:
    54
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks a lot... it worked...

    thank u ......
     
    rrn, Mar 9, 2009 IP
  4. salahsoftware.com

    salahsoftware.com Peon

    Messages:
    249
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    linux need absolute URLs for header-location, therefore remember to put the complete URL with http://
     
    salahsoftware.com, Mar 9, 2009 IP