How can i prevent users from submitting the same input twice ?

hello, i would like to create a registration form and prevent users submitting forms with the same email input. there is any way to do that ?

thank a lot.

You can use this as a good place to start: Example: No Database Duplicates

@Yisrael
Thank you for the response .
i followed the steps in your article and it works amazing in preview mode , but on the published site it seems that the code doesn’t take action.
here what i did:

and here in preview mode :

Is there anything to do with the the sandbox\live tabs in the database area?
any advice ?
thaks!

@yakarlee123, Did you sync your Sandbox database to the Live database?


I hope this helps,

Yisrael