Jeff,
I am guessing that you are using Explorer ( File Manager ) and double clicking on the xxx.php file.
You cannot do it this way. You must open the page via the Apache web server that came with WAMP. It is only apache that will do the correct things with PHP code in your file.
Open your browser, one of ( IE/Firefox/etc ) and in the address bar keyin
[
localhost]