RE: [PHP-DB] How to redirect after a valid login

From: Date: Fri, 12 Mar 2004 20:33:05 +0000
Subject: RE: [PHP-DB] How to redirect after a valid login
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-33428@lists.php.net to get a copy of this message
That means you send some output before the headers were sent. That is a no no. For instance, this will not work: <?php Echo "hello world"; header("Location:http://www.yahoo.com/"); ?> But this will <?php header("Location:http://www.yahoo.com/"); Echo "hello world"; ?> - Paul -----Original Message----- From: Larry Sandwick [mailto:lgs@sarreid.com] Sent: Friday, March 12, 2004 2:25 PM To: php-db@lists.php.net Subject: RE: [PHP-DB] How to redirect after a valid login What is considered to be the headers() information .... When I use the header() functions, I get an error stating that I have already sent the headers information? // Larry -----Original Message----- From: Larry E. Ullman [mailto:LarryUllman@DMCInsights.Com] Sent: Friday, March 12, 2004 3:04 PM To: lgs@sarreid.com Cc: php-db@lists.php.net Subject: Re: [PHP-DB] How to redirect after a valid login > Is there a way that after a execution of a Login script and validation > of login from a MySql database to automatically redirected to run > another script ? Use PHP's header() function. See the manual for syntax. Larry -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.db (#33428) next »