Filling in forms with a PHP script/preventing accidental...
Posted: Sat Mar 20, 2004 11:24 am
..sending. Sorry, I couldn't fit the entire topic. Anyway...
I have a PHP form on my site. Anyway, everytime someone refreshes the page or presses back into the form it resends the information to the page. (It's post action is to itself.) Anyway, this is a BIG problem. Does anyone know how to make it so that it only submits the form when the user presses the send button?
Alternatively, I could also set all the values of the form to 0 after they submit, but I don't know how I would do that either.
Either would fix the problem, does anyone know how to do it?
I have a PHP form on my site. Anyway, everytime someone refreshes the page or presses back into the form it resends the information to the page. (It's post action is to itself.) Anyway, this is a BIG problem. Does anyone know how to make it so that it only submits the form when the user presses the send button?
Alternatively, I could also set all the values of the form to 0 after they submit, but I don't know how I would do that either.
Either would fix the problem, does anyone know how to do it?