RE: [PHP] Redirect

From: Date: Thu, 03 Apr 2003 14:13:06 +0000
Subject: RE: [PHP] Redirect
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-142138@lists.php.net to get a copy of this message
if($condition == true){ Header ("Location: newpage.php"); exit; } -----Original Message----- From: Lowell Allen [mailto:la@lowellallen.com] Sent: 03 April 2003 04:09 PM To: PHP Subject: Re: [PHP] Redirect > From: "shaun" <shaun@mania.plus.com> > > How would one redirect a user to a different page if a certain condition was > met? > > i.e. > > if($condition == true){ > goTo newPage.php > } Redirects are done using the header() function. See the documentation at <http://www.php.net/manual/en/function.header.php>. -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#142138) next »