Ok, I've been trying to sort this our for a long time. I know the question has been asked, but I just can't seem to find the right information.
All I want to do is submit new contact info from a simple html form (on my website) and insert that data into my contact list. I have looked at the sample code for this but there are over 1000 lines of code in there and I jsut don't know what is neccesarry or not. So can someone please tell me what the essential bits of PHP are in order to submit data to my contact list?
all I want to do is add name, email, city. I have the html form, I just need the PHP.
The Constant Contact Signup Form Generator might be a good option for you. This allows you to generate custom HTML forms for your website without having to know any PHP.
If you have an existing form and want to make that deposit a contact in your account, the PHP Sample Contact/Upload form on our Code Samples would likely be the best place to start. Your would want to begin by looking at the add_contact.php page, which contains an HTML form that will add contacts to your account. This form requires that cc_class.php is included and contains your Constant Contact username, password, and api key. The part you would need to submit a contact is below.
I hope this helps. If you have any questions regarding this please let us know. Thanks.
View API documentation, code samples, get your API key.Visit Page