I suspect that duplicate submissions are, to a considerable extent at least, are caused by people accidentally clicking on Submit twice, or two posts requests otherwise being generated and sent. A simple solution for this would be, I think, to add a hidden input field to the form containing a randomly-generated value that would then be used to determine whether that form had been submitted already or not. A hash function like MD5 or SHA-1 could (and should) be used for this; that way, it would be reasonable to assume at the very least that there would be no false rejections.

The advantage of this approach would be that it would actually be possible to post nodes with the same title in rapid succession - this could very well be needed with comments, too, where node titles like "Re: Re: some question" could well belong to nodes with different contents even if they are posted only 47 seconds or so apart from each other.

--
mowgli


In reply to Re: Double double Post post by mowgli
in thread Double double Post post by dws

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.