Enigma response multiple submissions

Recently it seems that the addition of an enigma response is having a bit of a problem. The result of this is that users are hitting the Submit button again and again. And this is actually producing multiple responses all with the same text by that user.

So today, I have added in a bit of code to check the most recent response. If you then try and add another response when you are the most recent responder, it will let you know and not add the response. For those who genuinely need to add another response, I will soon add the ability for a user to edit their last response, so any updates can be added to that rather than posting a new one.

Comments (4)

Comments are disabled on this post
Hi Colin,

Just got your email about the new domain name.

I thought you might like to know there is a way to redirect requests for any pages at the old domain to this new domain. This stops there being invalid pages in search results, broken bookmarks from users and so on.

It uses the .htaccess file and the following contents. Only this one file is needed in the old web space. I have used this approach with several web moves.

RewriteEngine ON
RewriteRule ^(.*)$ h**p://www.newenigma.com/$1 [R=301,L]

Feel free to read up on this at the following places:
Link
Link
Link

I hope this information is helpful,
matt
Hi Matt,
I was planning to set up the redirecting but hadn't got around to it. But since you have provided the code, I have just added it and it seems to be working perfectly, so thanks for providing the code.

Colin
Hi Colin.

I understand the need to restrict the erroneous multiple posts. I don't think that the problem is due to users hitting submit, but rather hitting refresh after making a post. I know that I've done this. (post response. Minimize window. Find that window a day later. Hmm - any responses?....hit refresh and OOPS)

Instead of outright prevention (which requires an edit feature), why not just add an "Are you sure?" prompt if there are multiple sequential posts?
Ability to edit your last response should now be working. Any problems please let me know.