Re: Redirect

From: Date: Thu, 03 Apr 2003 14:02:23 +0000
Subject: Re: Redirect
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-142135@lists.php.net to get a copy of this message
At 15:55 3-4-2003, you wrote:
Hi, How would one redirect a user to a different page if a certain condition was met? i.e. if($condition == true){
    goTo newPage.php
}
if      ($condition == true)
        {
        Header("Location: "http://www.sense.nl/index.php?module=ContentExpress&func=display&ceid=15");
        }
take care that your script does not create any output before this,because then you will get an error (headers already sent)

« previous php.general (#142135) next »