seany123 Posted May 13, 2009 Share Posted May 13, 2009 do you know how i can have a redirect in a if statement... without getting this error? Warning: Cannot modify header information - headers already sent by (output started at /templates/private_header3.php:21) in /edit_account.php on line 245 Quote Link to comment https://forums.phpfreaks.com/topic/158023-solved-headers-already-sent/ Share on other sites More sharing options...
Axeia Posted May 13, 2009 Share Posted May 13, 2009 Did you read the ALL CAPS sticky specifically addressing this error? Quote Link to comment https://forums.phpfreaks.com/topic/158023-solved-headers-already-sent/#findComment-833563 Share on other sites More sharing options...
seany123 Posted May 13, 2009 Author Share Posted May 13, 2009 Did you read the ALL CAPS sticky specifically addressing this error? sorry i didnt notice that... however now im even more confused than when i started Quote Link to comment https://forums.phpfreaks.com/topic/158023-solved-headers-already-sent/#findComment-833581 Share on other sites More sharing options...
Maq Posted May 13, 2009 Share Posted May 13, 2009 You output to the browser before you call the header redirect. You can call ob_flush or you can use a meta redirect. Quote Link to comment https://forums.phpfreaks.com/topic/158023-solved-headers-already-sent/#findComment-833585 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.