Possible Duplicate:
Headers already sent by PHP
When i use header( 'Location: index.php) in php code it display this error message.
Warning: Cannot modify header information - headers already sent by (output started at D:\xampp\htdocs\OnlineCode\online\survey\code\index.php:55) in D:\xampp\htdocs\OnlineCode\online\survey\code\index.php on line 62
how can i fixed this ?
make sure there is no echo or print statement before redirecting the header.It cause this error when we use echo or print before redirecting the header.
This occurs when output has already been started. You have to put the header() calls before any output occurs. Even spaces outside of php tags count as output. It may be helpful to just post the page's code where we can look at it.