This may be more of an HTTP question, but...
I have a form with 3 text fields, a submit and a reset that users utilize to change their password. The first field is current password (current), the next two are enter and confirm new password (new1 and new2, respectively). So, the page checks for valid current password, characters, new1 = new2, etc...if there is an error, it prints a message at the bottom of the page (i.e., "Field cannot be null", etc). So, if all of the tests are successful, PHP changes the password in the DB, and echos that the action was successful. Here's the kicker: The top of the page is always there; if the hidden variable "action" = "change", then PHP goes through its cycle and validates the data. If it makes it all the way through, I reset all of the page variables to "". This works good, but if I refresh the page, the variables revert to the values they held before I set them to "", and I get the first error message (which is that the current password field is null). The URL field isn't holding any variables, just http://.....page.php. How is this happening, and how can I get these variables to keep the "" value I bestowed upon them? Are the PHP variables holding the values, or is HTTP storing them somehow? Or am I just on crack?