IŽll do that...I hope thats the problem....thanks a LOT! "Debbie_dyer" <[EMAIL PROTECTED]> skrev i meddelandet 00d601c266fe$2f4d32f0$0100a8c0@homepc">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" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > 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 > > >
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php