Forums

Problem with db record save and load

belli 25 Nov, 2013
Hi,

I read all tutorials and posts in this forum, but I'm unable to solve my problem.

I created (following tutorial) a form to save data in a custom table in my db: it works well, but it creates (obviusly) one record every time I fill the form and submit.
How can I rewirite the same record, without creating new records?

Then, I would to show this data in a Chronoforms module in homepage: this module would load data automatically from db, even if no users are logged.
I followed the pdf tutorial in each part (except “Load Fields” setting to “Yes”, where is it?) but my module doesn't load data automatically.
I see data only if I add the token param in the url (index.php?option=com_chronoforms&chronoform=user_details&token=ff2119500f1a4ec2318c210bf681b0fe).

Am I forgetting something?
belli 25 Nov, 2013
Hi,

I solved the first problem (data save):
I added an hidden input field to my form by this code:
<input type="hidden" value="1" name="cf_id" />

where 1 is value of db record I want to show in homepage module.

Now, when I fill the form and submit, it updates the same record.

But no solutions for second problem, and homepage module doesn't show automatically record data😟

Can you help me?
Thanks
This topic is locked and no more replies can be posted.