...

View Full Version : html blocks in php



thefuzmixman
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.

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


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

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

and the echo statement ...

raf
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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum