(I know this is an old post, but I thought i'd respond anyway, just in case.) If you double click to open any .html file , the address will read something like file:///C:/wamp/www/action.html\ If this is the case, the webserver will not be processing the files you are viewing, the browser will, and the browser can't process php. What does it say in the address bar of your browser window? For php to be processed sucessfully by your wamp server, it should read http://localhost/PHP/action.html or something like that in the address bar.