Reason:

Header already send error in PHP occurs when we print anything before redireding using header();

Solution:

  1. cut out your all code of <?php code here ?>
  2. paste above all content of that page.
  3. or you can put all content in else{} if step 2 not works.

use this think if above method not works : https://stackoverflow.com/questions/8028957/how-to-fix-headers-already-sent-error-in-php/8028987#8028987

Leave a Reply

Your email address will not be published. Required fields are marked *