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. Link to comment https://forums.phpfreaks.com/topic/235145-dedup-check-on-submit/ Share on other sites More sharing options...
fugix Posted April 30, 2011 Share Posted April 30, 2011 could you post your code please? Link to comment https://forums.phpfreaks.com/topic/235145-dedup-check-on-submit/#findComment-1208473 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. Link to comment https://forums.phpfreaks.com/topic/235145-dedup-check-on-submit/#findComment-1208484 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.