![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
13/07/2004, 11:49
|
![Avatar de monoswim](http://static.forosdelweb.com/customavatars/avatar10266_7.gif) | $moderador{'Esteban'} | | Fecha de Ingreso: febrero-2002 Ubicación: Buenos Aires - Argentina
Mensajes: 8.762
Antigüedad: 23 años Puntos: 90 | |
Tema: Imprimir código HTML
Pregunta: Como imprimir el HTML de una sola vez, sin concatenar ?
Respuesta: Se puede imprimir todo el HTML sin tener problemas con las comillas dobles del HTML e interpretando cada una de las variables que coloquemos entre medio, de la siguiente manera:
print "Content-type: text/html\n\n";
print << "HTML_END";
<html><body bgcolor="#006699">...
...
$mivariable
...
</body></html>
HTML_END
exit(1);
__________________ Esteban Quintana |