RE: [PHP] stopping repeated posts to a Bulletin Board
| From: | John Holmes | Date: | Tue, 17 Sep 2002 15:19:30 +0000 |
| Subject: | RE: [PHP] stopping repeated posts to a Bulletin Board | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-116638@lists.php.net to get a copy of this message | ||
> What is the best way to avoid the "repeated comment/post" syndrome
> caused by the user clicking the submit button one too many times
> because he/she did not wait for the browser to return a confirmation
> page or the script took too long to execute.
Along with the other suggestions,
You can use a processing page that doesn't output anything and just does
the insert and then redirects to a "success" page. Then, if they hit
refresh, then it will only refresh the "success" page, not the
processing page.
You can also restrict the user to only posting once every XX seconds.
---John Holmes...