How are you accessing these files, I mean take the first case out of 2 you have given. You have to launch a web browser and type in the address bar "http://localhost/pathtourdirectory/thatpage.html" . Make sure you are not launching the html page directly. If this is not the problem in the second page try to print the POST array and see any values are passed in the POST array. <?php print_r($_POST); ?> . Check this and get back.
Nov 30, 2009