Limit number of entries - Based on email

By: Matt Grimes | Asked: 11/28/2023
ForumsCategory: General questionsLimit number of entries - Based on email
Matt Grimes asked 2 years ago

I want to have a form have only one email allowed per use
Limit number of entries does ip's but not email..anyone have any ideas?
i can write php .. just trying to avoid that first sql query if its already built in somewhere
 
 

1 Answers
Walter JonesWalter Jones answered 2 years ago

Can you just mark your email field as unique and that way it will only allow one entry? Or are there more complicated requirements?

Matt Grimes
replied 2 years ago

does this query previous entries? thats the biggest issue. If a user had X@x.com and comes back to the form 3 days later and tries X@x.com again.. i would want to post a message "you have already signed up"

also.. I cant believe i missed that check box. (slaps forehead)

Walter JonesWalter Jones
replied 2 years ago

Yes I believe it does.

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right