nikola_mk
asked on
PHP heredoc syntax error
Hi,
i want to use heredoc syntax in php , but php sintax block code don't stop, all my html code at the bottom like string.
Error is like on picture, an anyone tell me where is my error?
I use eclipse
Thanks
i want to use heredoc syntax in php , but php sintax block code don't stop, all my html code at the bottom like string.
Error is like on picture, an anyone tell me where is my error?
I use eclipse
Thanks
<?php
echo <<<EOD
<div id="errordiv_php">
<div id="Naslov" class="errfontcaption_php" >
<label >5 <>;8<5 ?>?@025B5 38 A;54=8B5 ?>40B>F8:</label>
</div>
<p id="Ime" class="errlabel_php">
<label >* 5 <>;8<5 2=5A5B5 3> 20H5B> 8<5!</label>
</p>
</div>
EOD;
?>
<div id="errordiv_php">
<div id="Naslov" class="errfontcaption_php" >
<label >5 <>;8<5 ?>?@025B5 38 A;54=8B5 ?>40B>F8:</label>
</div>
<p id="Ime" class="errlabel_php">
<label >* 5 <>;8<5 2=5A5B5 3> 20H5B> 8<5!</label>
</p>
</div>
error.JPG
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I try this but no effects:
echo <<<EOD
<div id="errordiv_php">
<div id="Naslov" class="errfontcaption_php"
<label >5 <>;8<5 ?>?@025B5 38 A;54=8B5 ?>40B>F8:</label>
</div>
<p id="Ime" class="errlabel_php">
<label >* 5 <>;8<5 2=5A5B5 3> 20H5B> 8<5!</label>
</p>
</div>
EOD;