View Full Version : PHP and HTML

06-04-2007, 11:52 PM
I don't get how PHP makes HTML. Does it generate it automatically or do I hav to tell it what HTML to generate or what??????

06-04-2007, 11:54 PM
PHP doesn't make html. You have to code the html you wish it to output.

mr e
06-04-2007, 11:54 PM
You tell it what to do

echo '<html>';
echo '<head><title>Hello</title></head>';
echo '<body>';

echo 'Here is some content';

echo '</body>';
echo '</html>';