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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Redirect a PHP Form

Status
Not open for further replies.

grande

Programmer
Joined
Feb 14, 2005
Messages
657
Location
CA
Hi all,

Does anyone know how to automagically redirect a PHP script to another website?

Any help would be appreciated.

-------------------------
Just call me Captain Awesome.
 
I don't understand. Do you want a PHP script to redirect a browser to another web site? If so, there's example code in the PHP online manual page on header()


Want the best answers? Ask the best questions! TANSTAAFL!
 
To compound onto sleipnir's response:
Code:
header("Location: otherpage.html");

If you have headers sent out already and it gives you an error write:
Code:
ob_start();

Reality is built on a foundation of dreams.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top