Showing results for 
Search instead for 
Did you mean: 

Contact Form with automatic newsletter subscription

Occasional Participant

Here's the information I was

Here's the information I was able to retrieve:

PHP Version 5.2.11

cURL support: enabled

cURL Information: libcurl/7.19.5 OpenSSL/0.9.8l zlib/1.2.3 libidn/0.6.5

Safe Mode: Off


Just to make sure, I downloaded the "" package again, changed the username, password and API key in the cc_class.php file, reuploaded all of the files, and the files are still generating these errors:


Parse error: syntax error, unexpected $end in add_contact.php  on line 1

Fatal error: Call to undefined function phpinclude_once() in simple_form.php  on line 1


The only link that does not generate an error is "List all contacts."

CTCT Employee

It looks like you may have

It looks like you may have accidentally removed the space or line break between the initial <?php tag and the first function include_once() on the add_contact page. As a result, the script thinks that you are trying to call an undefined function entitled phpinclude_once().


Please make sure that the script starts with <?php and that the initial function is on a new line.

Dan H

Support Engineer, Constant Contact

Occasional Participant

As I stated in my previous

As I stated in my previous post, I did not made any changes to these files other than adding the API key, username and password to cc_class.php. The first 3 lines of simple_form.php file are as follows:




$ccOBJ = new ConstantContact();


I just now added an additional line break after <?php and now the page loads without generating an error.


Thanks for your help.