headers?
| From: | cleaner | Date: | Sat, 28 Sep 2002 14:23:01 +0000 |
| Subject: | headers? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-117947@lists.php.net to get a copy of this message | ||
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