No tiene que haber espacios en el tag de cierre...
deberias probar con:
Código PHP:
<?php
if($_POST['my_name'])
{
print "Hola, $_POST['my_name']";
}
else
{
print<<<_HTML_
<form method="POST" action="$_SERVER[PHP_SELF]" >
Your name:<input type="text" name="my_name">
<br/>
<input type="submit" name="Hello!">
</form>
_HTML_;
}
?>
Si necesitas mas informacion busca por "sintaxis Here Doc" en google o en el manual de php...
Saludos!