Re[2]: [PHP-WIN] php question

From: Date: Fri, 12 Oct 2001 07:11:07 +0000
Subject: Re[2]: [PHP-WIN] php question
References: 1 2  Groups: php.windows 
Request: Send a blank email to php-windows+get-9818@lists.php.net to get a copy of this message
Hi Brian, u must use header() function before you output any contents to client browser, and terminate ur script immediately after using it. -- regards, chen wei (http://www.cw213.net) =================================== Solutions Developer of Earth9.com =================================== Friday, October 12, 2001, 3:09:12 PM, you wrote: BF> okay, this is what i want to do. BF> i have a login.php that asks the user to login. BF> and then if the login was successful the user will "redirected" to my BF> main.php. BF> and also if the user is already logged and went to my index.php, he will be BF> redirected immediately to main.php BF> i tried to do header("Location: main.php"); but it said that i "cannot add BF> header information". BF> pls. help.

« previous php.windows (#9818) next »