php redirect problem
Posted: Tue Oct 11, 2005 9:38 am
Hi,
I have pages which redirect the user if their session variable == 0
I have noticed a problem when the user logs in with an invalid username or password, here is my code;
This else statement is excuted when the user / pass is incorrect.
I get the following error;
Warning: Cannot modify header information - headers already sent by (output started at C:\Audit\checkuser.php:11) in C:\Audit\checkuser.php on line 337
Any ideas?
I have pages which redirect the user if their session variable == 0
I have noticed a problem when the user logs in with an invalid username or password, here is my code;
Code: Select all
} else {
header ("location: http://www.something.com/login.php");
exit();I get the following error;
Warning: Cannot modify header information - headers already sent by (output started at C:\Audit\checkuser.php:11) in C:\Audit\checkuser.php on line 337
Any ideas?