Showing results for 
Search instead for 
Did you mean: 
In recognition of Martin Luther King Day, our Support Centers will be open with limited hours on Monday (1/20) from 10AM ET to 6PM ET.
Visit our Help Center to see all of the ways you can find answers to your questions.

PHP Sign-up with multiple Lists Checkboxes v3?

All Star

PHP Sign-up with multiple Lists Checkboxes v3?

I'm an API noob. I have 88 lists that a user can choose from when signing up. I'd like to organize the lists into groups on the signup form with headers. I think that means I need to use the API. Is there PHP sample code for this already? 


If possible, I'd like to simplify the list names on my custom form, without changing how they display in my Constant Contact admin screen (I named them with prefixes for sorting purposes). 


I have a similar post, but I'd like to do more than what is included with a normal sign-up form:


Re: PHP Sign-up with multiple Lists Checkboxes v3?

Hi @UtahD,


The answer from your other post is referring to using our in-line forms of which there is no ability to alter how the lists appear on the form.


If you want to control that as much as you indicate then you can use our API to create your own custom sign-up form. Both our v2 and v3 APIs have example PHP to show how to use them. The v2 API has a sign-up form example code already that you could probably adapt.


As for the list names you can make those whatever you want them to be on your sign-up form without altering the list names in your Constant Contact account. The API would use a listID to identify the contact list in your account and the name that appears on your sign-up form is completely up to you.


Take a look at our v2 API documentation. v2:

Here are our SDKs and sample codes.

Jimmy D.
Tier II API Support Engineer
All Star

Re: PHP Sign-up with multiple Lists Checkboxes v3?

Thank you for helping me get started.