HTML-Text from PHP script?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
47xxyy
Forum Newbie
Posts: 1
Joined: Sat Nov 13, 2004 12:01 pm

HTML-Text from PHP script?

Post 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
User avatar
Calimero
Forum Contributor
Posts: 310
Joined: Thu Jan 22, 2004 6:54 pm
Location: Milky Way

...

Post 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!
jtc970
Forum Commoner
Posts: 38
Joined: Sun Jan 18, 2004 11:49 pm

Post by jtc970 »

you can also use heredoc

Code: Select all

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

EOF;
Post Reply