Contact Upload Sample Forms

Sample Contact Upload/Signup Forms

Many developers like working with the sample codes because they provide a working example of how best to integrate with Constant Contact's API's.  In order to better illustrate these examples, we have created these sample codes for contact upload forms in PHP and .NET (C#).

These sample forms provide the following features:

  • Add a new contact
  • Update an existing contact
  • Sign up form that either adds a contact if new or updates a contact if exists
  • List all contacts, with options to edit a contact, or to remove contacts from all lists, as opposed to opt-out
  • Ability to display in the signup forms all of your contact lists or only the ones you want to display

We are providing you with these sample forms as a starting point to create your own signup forms.  We provide two different type of forms: a full form that contains all possible updatable fields, which you can trim down to leave those only you want, or a simple form, which has a limited set of fields that we felt you would want the most.  You can start with either form and create your own by removing fields you do not want in your signup form.  You can also modify the contact lists that are displayed on these forms.

We hope you find these sample codes useful, and please let us know if you have any feedback on the Support Forums.

DISCLAIMER:

We provide these sample codes to demonstrate our API's capabilities and use cases, but they are provided as is, without any guarantees that they will work in all system configurations and different versions of software.  We have tested them in our environments and they worked for us, but we expect you to have proper technical knowledge to address any system or coding issues that arise from using these sample codes.  

 

PHP Sample Forms

Sample File: PHP_Sample_Signup_Forms.zip (44 KB)

To learn how to use the above sample upload forms, refer to the documentation for PHP sample forms.

 

.NET (C#) Sample Forms

Sample File: NET_Sample_Signup_Forms.zip (591 KB)

To learn how to use the .NET sample upload forms, refer to the documentation for .NET sample forms.