cancel
Showing results for 
Search instead for 
Did you mean: 

adding contacts in v3 with single input

SOLVED
Highlighted
Occasional Contributor

adding contacts in v3 with single input

Hello,

 

Are there any examples anywhere of simple single input forms? Specifically adding a single contact to a single list and presenting 'thank you' type content dynamically on submit.

 

Matt

2 REPLIES 2
Occasional Contributor

adding contacts in v2 with single input and list specified

I've decided to go with v2 since im a novice when it comes to API integration. im using the php sample code from the portal (https://github.com/constantcontact/php-sdk/blob/master/examples/addOrUpdateContact.php). 

 

I noticed there is a list selection and a first/last name input. i can probably just remove the the first/last name stuff pretty easily but how can i specify a particular list and get rid of the dropdown list?

 

also where do i find this 'autoload' required in the code?

 

Thanks.

Moderator

Re: adding contacts in v2 with single input and list specified

Hi @annshall,

 

To change the drop down list to a single list you would want to check around line 136. This is where the current code is that creates the drop down list.

 

As for the autoload.php that is a file that is located in the https://github.com/constantcontact/php-sdk/tree/master/src/Ctct. Please make sure you go through the full installation to ensure that you get all the files that are needed.


Regards,
Jimmy D.
Tier II API Support Engineer