one time registration
-
Hi I would like to use contact form 7 to register and save a single email field and return a conditional success page.
If the user submits an email address for the first time the success page shows a random unique 5 digit pin. This is backed up with an email
If the user tries to register again a fail page is shown but an email is sent with details.
Easy
The form is super easy, it’s just a single email field
The first time registration success page is also easy
The generation of a random number to populate a field I have seen examples
Sending a copy of the entry to the registered email address
Logging the form submission to a database is also easy with a pluginDifficult
Checking if the random number is unique in the database when generated
Conditionally returning a failure page if the email address already exists and sending an email to the user confirming the original registration detailsHas anyone done something like this or know of a comparable plugin to contact form 7
- The topic ‘one time registration’ is closed to new replies.