Navigating back to the browser from a php page.

Discussion in 'PHP' started by EricEastman, May 5, 2007.

  1. #1
    I have an html input form with 'post' as the action.
    The user fills in the form and clicks 'submit'.
    The php page does some checking of the data the user submitted, and then sends an email.
    At this point I want to navigate back to the browser's home page or an acknowledgment page, but I can't seem to figure out how to do this.
    Can someone help?
     
    EricEastman, May 5, 2007 IP
  2. Subikar

    Subikar Active Member

    Messages:
    241
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    60
    #2
    browser's home page ? What do you mean do you want to redirect to your site home page if yes then it is like this way.

    header('Location:url of your homepage');
     
    Subikar, May 6, 2007 IP
  3. EricEastman

    EricEastman Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks! I'll give it a try.
     
    EricEastman, May 6, 2007 IP
  4. Subikar

    Subikar Active Member

    Messages:
    241
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    60
    #4
    Welcome EricEastman :) I am here to help you all more.
     
    Subikar, May 11, 2007 IP