Checking for Uniqueness
|
A common problem is that you need to check an incoming form submission to ensure the data being added to the database hasn't already been added. For example, maybe you have a registration form and you want to prevent duplicate entries from the same email address. Or maybe you want to check to see if someone with the same name hasn't already submitted the form. Users are notoriously good at finding innovative ways to mess up your data, so we need to stay on our toes! This tutorial explains how to use the ft_api_check_submission_is_unique API function to ensure that an incoming form submission contains unique data. For the sake of the example, we'll be checking for the uniqueness of an email field, but it can be used for any other field (or fields) in your form - the function lets you determine "uniqueness" through a combination of fields, like username AND password. RequirementsTo follow this tutorial, you need the following:
|


