Thread: Redirects
View Single Post
  #2 (permalink)  
Old October 10th, 2003, 12:50 PM
nikolai nikolai is offline
Friend of Wrox
Points: 2,570, Level: 21
Points: 2,570, Level: 21 Points: 2,570, Level: 21 Points: 2,570, Level: 21
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: San Diego, CA, USA
Posts: 836
Thanks: 0
Thanked 0 Times in 0 Posts
Default

In PHP, you can use the header() function to send the "Location" header to the client's browser. For example:

  header("Location: other_page.php");

You need to call this function BEFORE any output has been sent to the browser; HTTP headers are always sent before any HTML content.

If you'd prefer, you can also use javascript or a meta refresh tag. Lots of examples of these, just search for them:
  http://www.google.com/search?q=javascript+refresh
  http://www.google.com/search?q=meta+refresh


Take care,

Nik
http://www.bigaction.org/