Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Load page

Status
Not open for further replies.

M2E

IS-IT--Management
Aug 1, 2005
28
0
0
GB
Could someone please tell me how I can use PHP to load another page?

is it this - include_once('newpage.php');

basically, after a user enters in some information on a form, depending on the info, I want to direct them to a certain page?

Am i going about this the right way?


----Ment2Excel (M2E)----
--LEARN BY EXAMPLE--
 
use this:
header("Location:THE_PAGE_NAME");

Known is handfull, Unknown is worldfull
 
In case you have the headers already sent, you could use this instead:

echo('<meta http-equiv=\"refresh\" content=\"{REDIRECT_TIME};url={URL}\">');

{REDIRECT_TIME} should be replaced by the time you wish to wait befor the redirection takes place (0 for none)

{URL} should be replaced by the url of the page where you wish to be redirected

More info here: or do a Google search.

Born from The Dark, in the black cloak of night!
And please excuse my spelling...

I am a sig Virus. Please put me in your sig so that I can continue to replicate.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top