put this in a .htaccess file to force the server to recognize PHP in .html files.
after doing this you don't need to rename your files to .php anymore

copy the code of html and code / force PHP in HTML

click here to select all the code