This is a slightly more advanced version of the PHP file found in our Webform tutorial. If you haven't already read the webform tutorial, please click here to read it.
When someone fills out a contact form on your website, it's possible that they already have a record in your CRM. Rather than creating a new record for them, you might want to save the contact form on their existing record. This PHP checks to see if they already exist (based on their email address) so that they won't be duplicated in the CRM.