EmailSignup_PHPScript - AddAContact.php generate a blank page

Hello,
I'm new to Constant Contact and PHP codes. I downloaded the EmailSignup_PHPScript.zip file and followed the instructions in the readme file to modify the AddAContact.php and contact_form.html files. But when I upload all the modified files and test the contact_form.html, it goes to the AddAContact.php page which is a blank page. When I checked the log file, I saw this error message.

PHP Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /Contact.php on line 41

I didn't make any change to the Contact.php file. I don't understand what the error message mean. Can you please help me to fix it? You can also see my contact_form.html here

http://www.solidqa.com/contact_form.html (the site is hosted by Yahoo)

Thanks,
Xuyen

RE: PHP_Script Error

Hi Xuyen,

This typically would indicate that a change to the script wasn't correct PHP syntax, like a missing ; or }. Since you haven't made any changes, the other possible issue could be the version of PHP or CURL you're running. Can you take a look at your server configuration and make sure you are running at least PHP 5.0 and have CURL set to run in normal mode (or any mode but SAFE_MODE really)

Dave B Support Engineer, Constant Contact

PHP_Script for version 4.3.7

The server is running PHP 4.3.7. How can I modify the script to run on the 4.3.7 version? Do you have any sample codes that supports 4.3.7 version?

PHP_Script for version 4.3.7

The server is running PHP 4.3.7. and CURL is set to Normal. How can I modify the script to run on the 4.3.7 version? Do you have any sample codes that supports 4.3.7 version?

The integration of CURL_OPT

The integration of CURL_OPT into php requires at least php 5.0. The only way to get this to work correctly on a server running 4.x.x would be to rewrite the script to not use CURL (which we do not have any examples of) or to write the script to work on a server side script such as a perl or lisp script that calls the CURL command (which we also do not have any samples of).

Dave B Support Engineer, Constant Contact

php script giving me error code

Hi
I have downloaded all the necessary files and went throught the setup as directed in the readme file. However I am getting an error that says System Error Encountered!

Error

could not find valid list with the name LIST_NAME

I am not sure what this means I have completed all the fields as directed.

Here is my form I am working on http://www.yourinvestmentsource.com/contact_form.html

Thank you
Dee

Hi Dee, Is that the actual

Hi Dee,

Is that the actual list name you are using? It looks like you masked it. Typically that error is returned if the list name has a space or some other special character that the php script is incapable of parsing correctly. Using that php script out of the box, we recommend using single word list names with no special symbols or characters.

If you want to use more complicated list names, you would need to rewrite the php function which looks up the list by name.

Dave B Support Engineer, Constant Contact