Re: [PHP] stopping repeated posts to a Bulletin Board

2002-09-17 Thread Heilig (Cece) Szabolcs
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

Re: [PHP] stopping repeated posts to a Bulletin Board

2002-09-17 Thread Justin French
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...

RE: [PHP] stopping repeated posts to a Bulletin Board

2002-09-17 Thread John Holmes
> 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

Re: [PHP] stopping repeated posts to a Bulletin Board

2002-09-17 Thread John Wards
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

RE: [PHP] stopping repeated posts to a Bulletin Board

2002-09-17 Thread Jon Haworth
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

[PHP] stopping repeated posts to a Bulletin Board

2002-09-17 Thread Resarch and Development
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