Connecting Tech Pros Worldwide Help | Site Map

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

Newbie
 
Join Date: Jul 2009
Posts: 8
#1: Aug 21 '09
I am trying to get back to a "home.php" after a series of if statements. I tried include('home.php'); 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.
Member
 
Join Date: Sep 2008
Posts: 40
#2: Aug 21 '09

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


Try:

Expand|Select|Wrap|Line Numbers
  1. header("Location: home.php");
  2. exit;
  3.  
This will tell the browser to go to the specified page.
Newbie
 
Join Date: Jul 2009
Posts: 8
#3: Aug 24 '09

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


Quote:

Originally Posted by labmonkey111 View Post

Try:

Expand|Select|Wrap|Line Numbers
  1. header("Location: home.php");
  2. exit;
  3.  
This will tell the browser to go to the specified page.

Worked great!!!
Thanks
Reply