Unique email validation for forms

Some forms require that the email submitted in the form to be unique. If the user has already submitted the form, the form should not be submitted again (with the same email, at least)

Here is an extension module that checks the database to see that the email was not submitted before.

Please note that 'Save to database table' should be enabled in the 'form processing options page. ( The email submission is checked against the database table entries )

Steps:

  • Download the extension module
  • Open the file UniqueEmail.php in a text editor.

    scroll down to the line /*database details*/ and update the

    database details. Save the file.

  • In Simfatic Forms, 'Enable extension modules' in the 'form processing options' page and press 'Next'
  • In the extension modules page, press 'add module' and select UniqueEmail.php
  • re-upload the form

Good Article? Share it! Please?

Comments

Thanks

It is the most important news related to email list validation, try now for best results.

$error_hash["Email"]

$formvars["Email"]

the 'Email' key in above arrays is the form field name.

so if you want any other field then just change 'Email' to that field

Hi,

Instead of email, if we required the field of our own choice like name or phone number then what to change in this extension nmobule?

Thanx