mrherman Posted January 25, 2011 Share Posted January 25, 2011 Hi, friends -- I'm getting this error: Warning: Cannot modify header information - headers already sent by (output started at E:\xampplite\HTDOCS\Andreas01\login.php:61) in E:\xampplite\HTDOCS\Andreas01\login.php on line 307 Here is line 61: action = "<?php echo htmlentities($_SERVER['PHP_SELF']); ?>" My question: Why does output start with line 61? The script for this page starts with <?php session_start() ; ?> Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/225591-why-does-output-start-here/ Share on other sites More sharing options...
trq Posted January 25, 2011 Share Posted January 25, 2011 Because 'action =' is outside of php tags. It is html which is output. Quote Link to comment https://forums.phpfreaks.com/topic/225591-why-does-output-start-here/#findComment-1164844 Share on other sites More sharing options...
mrherman Posted January 25, 2011 Author Share Posted January 25, 2011 Thank you. Quote Link to comment https://forums.phpfreaks.com/topic/225591-why-does-output-start-here/#findComment-1164860 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.