Hello to all!
I found this php script which works with CC API, however I am having a problem using it when i follow the directions I get an error message no target list has been defined and missing or invalid email address.
Any help with this topic would be great.
here is the address to the php script in a text file along with the read me file that i am wokring with along with the script running on the server and the error i am getting
Thank you to all
RE: PHP Script - API
Hi
From my read of your sample, I think you have mixed up the PHP script and the HTML page that invokes that script.
1. The cc_contactssave.php is the executable script which should live on the server.
(Perhaps starting over again from the original) You should update that file to include your username, password, site hote URL and SSL true or false, as covered in the Readme file. (Some users report problems with using SSL=True).
Save this file and upload to your server.
2. Create a very basic HTML page (ie. MySignUpPage.html) that will invoke CC_ContactSave. In that Body of that HTML page, put the basic form information needed for your input form (ie. the stuff you added to CC_Contacts Save:
Name: Email:
3. Update the CC_List value to reflect a list name which exists in your account.
4. Save this HTML page on your server.
5. Invoke the MySignUpPage.html and see what you get.
Tom Mignosa, Product Manager, Constant Contact