I'm having a problem with some forms where a user can click the Submit button rapidly in succession and the form will post ever time he clicks... before it even has a chance to redirect.
The form action is a separate PHP page that processes the form post (validates data, does some calculations, and inserts into a database) and then redirects to a display page, giving the user a thank you message, etc.
However, if the user rapidly clicks, this script gets executed once for every click EXCEPT for the redirect... until the user stops clicking and then it processes the redirect, too.
How can I keep this from happening? I want the form to ONLY be able to post once, regardless of how many clicks the user can repeat.
Thanks in advance!