Forums

Check Boxes - The more I read ... the more lost I become

rwoody 18 Aug, 2009
I feel like I'm building a form for the first time here... I'm so lost.

Cutting to the chase - I'm building a form that has those "evil" check boxes and I want to store data and send emails both. 😟 -

In my form I set each line for the check box as follows:
<input type="checkbox" name="post-sign" value="1" tabindex="11" />
<strong>Post A Yard Sign</strong></label>
There are ten of these little guys. This form is for a volunteer form so each check box is what the person is will to do to help.

When I set up the db columns for the checkboxs I set it to Type - tinyintger(1) not null and default 0 -

When the form is presented an error is being thrown on the top of the form -

Parse error: syntax error, unexpected '-', expecting ',' or ';' in /.../mysite/components/com_chronocontact/chronocontact.php(45) : eval()'d code on line 19

and of course if you try to process the form even more errors are thrown. Now if I disable the DB connection in Chronforms - the error goes away -

I'm also a bit lost on how to properly get the data to be displayed in the email that is being sent, but I thought first I would tackle getting the db connection to work.

I really need some direction here. I've been reading the forums for days and redoing this form at least a million times now and I'm not sure where I'm going wrong. Definitely need a bit of help here.

chronoforms version = 3.1 RC5patched -
Joomla ver. 1.5.12

I would attach a backup of the entire form, but I no longer see that ability here on the new forums.

Ruth
rwoody 18 Aug, 2009
Solved!! Yea! All is now working - I was being hard headed and not using your wizard. 😶 All data is saved - email is perfect!!! Couldn't ask for more!!!

Thanks for such a great system!!

Ruth
GreyHead 18 Aug, 2009
Hi Ruth,

As I guess you worked out - the error message was from the - in post-sign, use _ instead post_sign.

Glad that you got it working

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