Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
i wrote this code :

header('location:forum.php');



and show me this error:




Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\project\login.php:20).......
Posted
Comments
vbmike 6-May-14 10:08am    
header information must be sent before any html is sent. see http://us2.php.net/manual/en/function.header.php.

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900