in reply to Don't allow duplicate posts with the same title

I think Slashdot places a unique ID on the *form* page and tacks this onto the actual posted comment. If it detects the same ID is already in use (or perhaps the same ID with the same subject/title), it can infer that the user clicked Submit twice or hit Reload, and can ignore the 2nd post.

The drawback, of course, is that I can't type up a comment, submit it, go back and type up a new/2nd comment, because the "ID" in the form will already be added to the system due to my previous comment. I'd have to refresh the page that has the form so as to get a new ID.

  • Comment on RE: Don't allow duplicate posts with the same title

Replies are listed 'Best First'.
RE: RE: Don't allow duplicate posts with the same title
by mirod (Canon) on Sep 21, 2000 at 00:26 UTC

    I do the same kind of check in one of my scripts: I check if the ID has been already submitted, and in that case whether the form content is the same as what was submitted with the same ID. In this case, and in this case only, I consider the post to be a duplicate.