adriscoll Posted April 30, 2011 Share Posted April 30, 2011 Hello. I have a form where people can sign up for events. I want to stop them from signing up for the same event multiple times, and wanted to know if it is possible to do some type of check before insert. I need help with the theory of how this would be accomplished. Quote Link to comment Share on other sites More sharing options...
fugix Posted April 30, 2011 Share Posted April 30, 2011 could you post your code please? Quote Link to comment Share on other sites More sharing options...
gizmola Posted April 30, 2011 Share Posted April 30, 2011 There are numerous ways to handle this. One very nice way is to create a unique constraint or index in the database that will disallow duplicates. I like this type of approach because it puts the rule in the database, and makes it impossible for the rule to be subverted. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.