|
Instead of putting .html on the end of the file name, put .php
NB. Although I recommend saving your pages as .html and parsing them as .php however, this will render the code in shades of blue and as a new php coder perhaps it best to leave as php to make it easier to read code.
Whenever you want to write php code put "<?php" then start code on next line. At the end of the php code put "?>".
Also, don't get into the habbit of having both a index.html page and a index.php page on your root as this will be seen as duplicate content.
|