Originally posted by bigray
see wut it says when u cick submit this shit is pissin me off heres my code
I see what it says, and I also see it's turning up after the login form. This means the login form is being sent before header() is being called.
Like kidsleep said:
PHP does not allow this
So like Smifffy, ditch the require(). You don't need to (and you don't want to) display a login form on this page. Either their login was correct and they get redirected to index.php, or their login was wrong, and they get redirected to login.php.
They should never even see handlelogin.php!