Page 1 of 1

HTML-Text from PHP script?

Posted: Sat Nov 13, 2004 12:04 pm
by 47xxyy
Hi!

this ist my first time with php. please tell me: how can I write html-code from inside a php-script?

I have no idea.

thanx for your response.

--------
sprot@integen.de
http://www.integen.de

...

Posted: Sat Nov 13, 2004 12:25 pm
by Calimero
Use:

Code: Select all

<?php

echo "you can write anything yuo want here including HTML <tags> and you end it with ";


?>

You can also insert PHP code inside HTML page - depends on your style

8)

Hope this helps.
See ya!

Posted: Sat Nov 13, 2004 7:45 pm
by jtc970
you can also use heredoc

Code: Select all

echo <<<EOF
<html in here>
<table>
<tr><td>
more html
</td></tr>

EOF;