RE: [PHP] how to redirect from one page to an other page in PHP ?

From: Date: Thu, 03 Oct 2002 13:57:37 +0000
Subject: RE: [PHP] how to redirect from one page to an other page in PHP ?
Groups: php.general 
Request: Send a blank email to php-general+get-118741@lists.php.net to get a copy of this message
I think this is what you'll want. <<switch (condition1) { case "1"; header("Location: page1.php"); case "2"; header("Location: page2.php"); }>> You need to be careful that you haven't output anything beforehand or you'll get an error message. Even having a blank line before the <?PHP tag will screw you up.

« previous php.general (#118741) next »