Re: PHP Redirects

From: Date: Thu, 12 Dec 2002 20:35:14 +0000
Subject: Re: PHP Redirects
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-128061@lists.php.net to get a copy of this message
Look at this: <?php header("Location: http://www.example.com/"); /* Redirect browser */ exit; /* Make sure that code below does not get executed when we redirect. */ ?>This needs to be before anything else being outputted or you can use javascript to redirect.<script>location='http://www.somewebsite.com';</script> ----- Original Message ----- From: "James Johnson" <james@owell.com> To: <php-general@lists.php.net> Sent: Thursday, December 12, 2002 2:30 PM Subject: [PHP] PHP Redirects Hi, In ColdFusion, I can redirect to another page with the tag <cflocation url="somepage.ext">. Is there an equivalent in PHP? Thanks, Jim Johnson

« previous php.general (#128061) next »