Hello,
You can definetly use cc_class.php to do this, but it may be even easier to use the Constant Contact Signup Form Generator. The Signup Form Generator will automatically create a custom form for you to put on your site, and the PHP will be done in the backend.
To do this in the sample code, you would need to first call the createContactXML function and pass it an array with the minimum required fields. These are email address and list. Once you have the XML, you then need to use the addSubscriber function and pass it the XML, and that would add the contact.
Please let me know if you have any questions.
Regards,
... View more