Forums

Error when DB is connected

mbajames 14 Jun, 2011
Hi,

I am getting a strange error when I enable data storage and connect to a database table -- but only on 1 of 4 forms and all are set up the same. (V3.1 ...I will be upgrading as soon to 3.2 and then 4 once I know it can handle my conditional forms)

Here is the error:

Parse error: syntax error, unexpected '-', expecting ',' or ';' in /home/xxxxx/public_html/xxxxxxx/components/com_chronocontact/chronocontact.php(53) : eval()'d code on line 16


It only happens on 1 of 4. All are connected to a different database table for data storage, all e-mail results, and all are using the reCaptcha plug-in.

Can you possibly help guide me in the right direction to fix whatever I might have done wrong?

Thanks.
GreyHead 14 Jun, 2011
Hi mbajames ,

You probably have a dash '-' in one of your input names. Dashes give ChronoForms and MySQL problems. Please rename the input using only [a-z], [A-Z], [0-9] or underscore '_'. No dashes, spaces or other special characters.

Bob
This topic is locked and no more replies can be posted.