//how do I get php to forget about this every time the page is loaded
if($_POST["button"]== "Submit")
after its clicked once it keep on preloading it before the submit button is actually pressed.
I have 2 options in my mind(there may be more).
I think I would do the latter of the two... just set a session variable telling it that the button has been pressed. You'll need to add the necessary session function to the top of each page, so it'd be easier if you're using a global header file of some sorts.