How to jump to another php page when script is complete?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • JWM81274
    New Member
    • Jul 2009
    • 8

    #1

    How to jump to another php page when script is complete?

    I am trying to get back to a "home.php" after a series of if statements. I tried include('home.p hp'); but that just added the home page to the bottom. I am very ignorant when it comes to PHP programing and I can't seem to find anything other than include() when dealing with pages.
  • labmonkey111
    New Member
    • Sep 2008
    • 44

    #2
    Try:

    Code:
    header("Location: home.php");
    exit;
    This will tell the browser to go to the specified page.

    Comment

    • JWM81274
      New Member
      • Jul 2009
      • 8

      #3
      Originally posted by labmonkey111
      Try:

      Code:
      header("Location: home.php");
      exit;
      This will tell the browser to go to the specified page.
      Worked great!!!
      Thanks

      Comment

      Working...