OK, when you're using queries you have to be careful of refreshing pages.
Once you've submitted that form, and you've printed out that info, that submitted information is no longer usable for another page, unless you either create a session for the user, in which you store this info, or you...