Gdy skrypt jest w takiej postaci:
<?php echo ' <form id="commentform" method="post" action=""> <p> <input aria-required="true" tabindex="1" size="22" id="author" name="author" type="text"> <input aria-required="true" tabindex="2" size="22" id="email" name="email" type="text"> <textarea tabindex="4" rows="10" cols="60" id="comment-form" name="comment"></textarea> max 10 znaków <input value="Оставить комментарий" tabindex="5" id="submit" name="submit" type="submit"> < /p> </form>'; } else{ } ?>
To wywala mi błąd:
Cytat
Warning: Cannot modify header information - headers already sent by (output started at /home/mrcash/domains/mojastrona.pl/public_html/index.php:10) in /home/mrcash/domains/mojastrona.pl/public_html/index.php on line 18
Natomiast, gdy usunę pierwszą część i zostawię go tak:
<?php } else{ } ?>
To wykonuję się prawidłowo. Kodowanie pliku to utf-8 bez bom. W czym może tkwić błąd?