hi there friends i am coding my own site and i have got this warning and can not understand what the error is as i used it many times befor
	this is the part i got problems with
	can some one tell me whats wrong with it please
							
						
					Code:
	
	Warning: Cannot modify header information - headers already sent by (output started at C:\******\htdocs\check.php:9) in C:\*******\htdocs\check.php on line 40
Code:
	
	header("location:index.php");
}
else 
{
header("location:index.php?login=1");
}

Comment