anyway if header("location....") does not work, you can insert a small hidden form into the login-checking page, and if login/password is correct, just set body.onLoad event handler to "HIDDENFORM.submit();" , where HIDDENFORM is your small hidden form. Ok. i know it is a weird way to solve your problem :-(. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php