Lots of form issues

alvb 02 Sep, 2011
Good Morning,
I am hoping someone can help me with my form. I have been at this for two days and have no idea what I am doing wrong. I have followed all the tutorials to no avail.

I am trying to create a basic form for registration for an upcoming seminar. It needs to collect name, address, email, etc. and should then both email me the information and save it to a database.

The form is here: http://testousa.com/thermal/thermal-imager-seminar-registration.html

When I complete the form, I get the following error:
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/ktestous/public_html/thermal/components/com_chronocontact/chronocontact.php(53) : eval()'d code on line 11
You are not allowed to access this URL

I have deleted/recreated the form several times, but am really not sure what I am doing wrong. If anyone can provide any help, I would very much appreciate it. 😟

Thanks,
Andrea
GreyHead 02 Sep, 2011
Hi Andrea,

Some of your input names have spaces in them 'First Name', 'Last Name', 'Street Address' and one has a dash 'E-mail'

Please use only a-z, A-Z, 0-9 and underscore - no spaces, dashes or other special characters.

Bob
alvb 02 Sep, 2011
Thank you for your response!

I took out all spaces and special characters. Now upon completing my form and hitting "submit" I get the following:
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/ktestous/public_html/thermal/components/com_chronocontact/chronocontact.php(53) : eval()'d code on line 11
Thank you!

Thank you for registering for our upcoming thermal imaging seminar. Should you have any additional questions, please email [email]info@testo.com[/email] or call 800-227-0729.

For directions to the event, please visit the Cincinnati State Workforce Development Center direction page.

Fatal error: Call to a member function bind() on a non-object in /home/ktestous/public_html/thermal/components/com_chronocontact/libraries/customcode.php(71) : eval()'d code on line 13
GreyHead 02 Sep, 2011
Hi Andrea,

Are you saving the results to the Database? Then you will also need to change the database column names and refresh the DB connection (see below).

NB You can keep spaces, dashes etc, in the input Label - it's just the name and id where they are not permitted.

Bob

You need to refresh the DB Connection after any changes to database column names. In the Form Editor click the DB Connection tab and set the Connection to 'No'. Click the 'Apply icon in the toolbar to save the form, open the DB Connection tab, set the Connection back to 'Yes' and re-save the form. This will refresh the copy of the table information that ChronoForms uses.
alvb 02 Sep, 2011
Bob...(to quote Seinfeld) you are wise! 😀 Thank you SO MUCH for all your help!
cmc-service 04 Oct, 2011
Hi, I had some light trouble with forms before, but I can't solve this one.

(1) Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /var/www/web1/html/santapost.de/components/com_chronocontact/chronocontact.php(53) : eval()'d code on line 19

(2) Fatal error: Call to a member function bind() on a non-object in /var/www/web1/html/santapost.de/components/com_chronocontact/libraries/customcode.php(71) : eval()'d code on line 13

I already checked all id's and names - no minus or spaces in there.
I think it's something simple - I just don't see it?!? Thx in advance.
This topic is locked and no more replies can be posted.