i have used header to redirect to other page. however, it has said that i have written something out the screen before header. would anyone please to help me? the following is all my code. <?php include "config.php3"; include "functions.php3"; $result = checkUser($nUserNo, $cPassword); if ($result == false) { header ("HTTP/1.0 404 Not Found"); exit; } else { header ("../Form/first.html"); } ?> The above function "checkUser" just used to check whether the user exist or not. nothing will be written out to the screen if the user is found in the database. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]