Forums

choroform doesnt save the data to the DB

matricks 13 Aug, 2009
hi,

1. i create form with the wizard.
2. i also create table for this form.
3. i set to yes the "Enable Data storage" in the DB connection.
4. and i gave the table name that i create on step 2 and saw that the table name is apear in the form manager at my form line.
5. i checked that the fields dont contain any special char
6. when i write some data in my form and click on submit button i got an success message that i set before.
7. i went to see if the data was save to the DB and its doesnt. only the default fields like: ip date time etc.
8. i saw all the tutorials and i did exactly the same.
9. btw - i saw that at the auto gerenate code, the are note code lines for the form's fields (kinda weird)

here is the debug:
Form passed first SPAM check OK
Form passed the submissions limit (if enabled) OK
Form passed the Image verification (if enabled) OK
Form passed the server side validation (if enabled) OK
$_POST Array: Array ( [name] => roey [goals] => 2 [assists] => 2 [button_3] => Submit [0bb131a02dfd683bd9b2413df50fda64] => 1 [1cf1] => bd4e41af5dd1252e47172f7cc5971d27 [chronoformname] => form1 )
$_FILES Array: Array ( )
Form passed the plugins step (if enabled) OK
Debug End
nml375 13 Aug, 2009
Hi,
Could you also verify that the field names in your database match the form fields to the letter (including case)?
/Fredrik
matricks 13 Aug, 2009
yes...i already checked.
sorry that i didnt write it at the first post.

btw - i think that the table wizard set the name of the DB fields according to the fields name of the form that u choose to create table for it.
nml375 13 Aug, 2009
Good,
now to figure what's not working.. Do you think you could make a backup of your form and attach it?

/Fredrik
GreyHead 14 Aug, 2009
Hi Matricks,

9. btw - i saw that at the auto gerenate code, the are note code lines for the form's fields (kinda weird)

That's normal - the Joomla code that ChronoForms uses gets the list of column names from the table and saves any form fields with matching names. The two functions in the AutoGnereated Code that do this are 'bind' and 'store'

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