Re: Preventing multiple submits
| From: | Zak Greant | Date: | Thu, 24 Aug 2000 16:27:05 +0000 |
| Subject: | Re: Preventing multiple submits | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-2105@lists.php.net to get a copy of this message | ||
At 05:16 PM 8/24/00 +0100, James Duncan wrote:
Hi folks, I'm still working on my first PHP project and was wondering how to prevent users from submitting the same form multiple times when they continually click on the submit button. I've heard it's possible to prevent this with Javascript but is it also possible to use PHP (encase the user doesn't have Javascript enabled, etc)? I assume you could assign a temporary variable and increment it when the submit button is pressed and then check against that? Would that work? I'm sure people have already solved this problem?Doing what you have proposed will work. - zak