This example demonstrates how to prevent duplicate entries from being entered into a Database.

  • Enter a name, click the Submit button, and the name will be displayed in the table.

  • Enter the same name again, click Submit, and a notification of a duplicate entry will be displayed.

Submit

Sorry, this value already exists. 

Your content has been submitted

name string in database