I\'m no genius when it comes to coding, but I google enough to figure things out... I have a quick question.
Use htaccess to rewrite request to yourfile.html to the newly created yourfile.php.
Easy way to use object
<object name="foo" type="text/html" data="foo.inc"></object>
If you want to execute php code in .html file extension than u need to do some htaccess changes. Since file-extension plays a major role, it only tells the browser how to handle or parse a particular page.
You can create a .htaccess file at the root folder of your website and in the .htaccess file add this line:
AddType application/x-httpd-php .html .htm
If you only plan on including the PHP on one page, it is better to setup this way:
<Files yourwebpage.html>
AddType application/x-httpd-php .html
</Files>
This code will only make the PHP executable on the yourpage.html file, and not on all of your html pages.
If you are ok with changing your file extension to .php than your work will be quite easy.you can simply include a php code between html code.like this
<form method="get" action="latest.php">
<label><?php echo "hello" ?></label>
</form>
see here
detail