View Full Version : html blocks in php

04-16-2004, 03:25 AM
Is there a guideline or special rule when intermingling the two for instance, to center a printed (echoed) message? Read an article on this and im interested, but i haven't found a source other then that.

04-16-2004, 05:45 AM
With Print or Echo, you can use anything you would put in a normal html file. Such as:

print '<p style="text-align:center;">Some Centered Text</p>';

04-16-2004, 06:45 AM
echo "<p style=\"text-align:center;\">Some Centered Text</p>";

and the echo statement ...

04-16-2004, 07:49 AM
my personal view on things

http://www.codingforums.com/showthread.php?t=36744&highlight=mode --> last post + included link there