harix and elizibeth; Here is the answer to your problem. If your browser will run the php script when the file has a .php extension but not when the php code is embedded in an .html file - it is because the server doesn't know to run php.exe for it. I solved the problem this way; I went into the internet services manager (or whatever yours is called), went to the default web site and called up the properties page. Then I went Home Directory>configuration >Add and added Extension .html and Executable path (for me C;\php\php.ext) hit Apply, close everything up and - bang - the browser will now run php code imbeded in a .html file. Good idea to add .htm while you are at it.
Cheers
Hal Davey - PHP newbie