On 2002. szeptember 17. 15:52, Resarch and Development wrote:
> 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
The "page" that actually validates the user input and inserts into the
database shouldn't actually be a page that gets sent to the browser -- it
should be a script with no output, which then redirects to a thanks page.
That way there is no chance of the user hitting refresh and double
posting...
> 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
t; <[EMAIL PROTECTED]>
To: "PHP General List" <[EMAIL PROTECTED]>
Sent: Tuesday, September 17, 2002 2:52 PM
Subject: [PHP] stopping repeated posts to a Bulletin Board
> What is the best way to avoid the "repeated comment/post" syndrome
> caused by the user clicking t
Hi,
> What is the best way to avoid the "repeated comment/post"
> syndrome caused by the user clicking the submit button one
> too many times
The canonical way is to attach a token to the form (a random number will
usually do) and insert that into the table along with the comment/post,
after
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.
Thanks in advance
--
PHP General Mailing List
6 matches
Mail list logo