Re: headers?

From: Date: Sat, 28 Sep 2002 15:11:53 +0000
Subject: Re: headers?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-117949@lists.php.net to get a copy of this message
I´ll do that...I hope thats the problem....thanks a LOT! "Debbie_dyer" <debbie_dyer@surfanytime.co.uk> skrev i meddelandet news:00d601c266fe$2f4d32f0$0100a8c0@homepc... > It's giving you this error because you are sending the headers after > outputting something (which could be just a blank line) - check in your > functions.php that you dont have any blank lines before the start of or > after the end of your script. ie. before the <?php or after the ?> > > Debbie > ----- Original Message ----- > From: "cleaner" <cleaner@constrictor.nu> > To: <php-general@lists.php.net> > Sent: Saturday, September 28, 2002 3:23 PM > Subject: [PHP] headers? > > > > Hi all.. > > > > Got this script to verify a login against a mysql-databas with several > > checking for type errors etc. > > > > When I wanna login people, I include a file with all my functions > > ('functions.php') and I a function verify is called upon. > > > > the function returns false if user entered wrong user/pass, And if they > > enter correct info I want them to be redirected to another page.. hm. the > > headers cant be added (u heard that before?) cuz my login form already > > started output... > > > > function verify($user,$pass){ > > // some sql queries here... > > > > if(count($number)>0){ > > return false; > > }else{ > > header("Location:admin.php"); > > } > > > > } > > > > I would like som help using headers in a correct way, or be able to use > > another way... > > > > > > reg:cleaner > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > >

« previous php.general (#117949) next »