Okay, hopefully this won't be overkill, but I'm going to try to give more than might be needed. To help give full context, I'm writing these in Notepad++ and when I want to test them I'm selecting Run>Launch in Firefox. Then filling out the form and clicking the submit button. The result is simply a page in Firefox that displays the script again.
And for what its worth, my OS is Windows
Forum:
WampServer English