The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
Unique Email Validation to prevent duplication form submissions - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Modules / Other (https://forums.formtools.org/forumdisplay.php?fid=8) +--- Forum: Form Validation: JS + PHP (https://forums.formtools.org/forumdisplay.php?fid=18) +--- Thread: Unique Email Validation to prevent duplication form submissions (/showthread.php?tid=1517) |
Unique Email Validation to prevent duplication form submissions - uzzislo - Aug 9th, 2011 Hi, I noticed in the validation tutorial that the list of available validations only checks against field content types, e.g., regEx. I'm a novice when it comes to server-side validation and was wondering if there's a way to check against the database to see if a user with a unique email address has already submitted a form with that email address to prevent duplicate submissions per user? Thanks! RE: Unique Email Validation to prevent duplication form submissions - Ben - Aug 9th, 2011 Hi uzzislo, Welcome to the forums! Yes, there is a way to tell the script to prevent duplicate submissions, but the one limitation is that your form needs to be an API form. Give this tutorial a read over for more info: http://docs.formtools.org/tutorials/checking_for_uniqueness/ Hope this helps! - Ben RE: Unique Email Validation to prevent duplication form submissions - uzzislo - Aug 9th, 2011 Excellent, thank you! And Thank You for Form Tools!!! |