Ummm...if the page is not a PHP page, then how do you expect PHP code to work?
That is, the name of the page *MUST* be "something.php" and you *MUST* be running on a web server with PHP enabled.
There's a much easier way to accomplish the same thing: Just omit the action. It then defaults to the same page.
CAUTION: If your page is an HTML page (that is, named "xxx.html" or "xxx.htm") then you can *NOT* use method="POST".
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.