A couple of variations on that, one is the use the nextval('seq') from a pgsql database and put it into the form and then insert it into a unique key, the other, and one I like a lot, is to md5 the whole posting, and then insert that as the unique key. In that instance, if the user accidentally hit back/submit, it wouldn't take the message, but if they change a character, it would.