link from a php to another php page

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

  1. #1
    Hi ,

    i am new to php...

    in my website, there's a page for sending mails with attachments to email id..
    after sending the mail.. it should direct to a new php page for eg; to new.php..
    how can i write the code for that in php???

    ie in my website there's a page careers.php, there's a form and 'apply' button.
    when i click the apply button , it should display a message" thanks for sending mail". i have given that message in a separate 'new.php' page.
    is it possible? or any other way to do that??

    pls give me a solution...

    thanks
     
    rrn, Mar 5, 2009 IP
  2. PHP_Adam

    PHP_Adam Guest

    Messages:
    39
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    After the mail() function just type:
    header("Location new.php");
    Code (markup):
     
    PHP_Adam, Mar 5, 2009 IP
  3. ads2help

    ads2help Peon

    Messages:
    2,142
    Likes Received:
    67
    Best Answers:
    1
    Trophy Points:
    0
    #3
    You missed a : there

    header("Location: new.php");
    Code (markup):
     
    ads2help, Mar 5, 2009 IP