agmorgan wrote:Can this be done or do I have to call it a .php rather than a .html ?
While you could technicaly force your webserver to parse files ending in .html for PHP code, this wouldn't be very efficient at all.
So, basically, yes, if you want to use PHP code, you have to use the .php file extension.