Forums

edit previously entered infomation into DB

thewelt 09 Apr, 2014
Hi there,

I created a form to let registred users save personal information into a DB-tabel. That went pretty good. I works fine.
But now I want to use the same form to let the user edit there own information (of course after they are logged in).

How can I:
[list=]let the user see its information already filled in into the form?[/list]
[list=]make sure the user is editing previously provide information (so he is overwriting earlier content without entering a new record in de DB table)?[/list]

Thank you for your help ! 😀
thewelt 09 Apr, 2014
Hi Bob,

I use chronoforms V5.
How can I do the things in the FAQ in version 5?

Thanks.

Bart
GreyHead 09 Apr, 2014
Hi Bart,

I think it is very similar except that DB Record Loader action is now called the DB Read action.

Bob
Max_admin 09 Apr, 2014
1 more note, in v5 "DB Read", you will need to use the conditions box since there are no "request param" or "db field":

So after you get the user id, you can use this code in the conditions:

<?php
return array("USER_ID_DB_FIELD" => $form->data["user_id"]);
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
thewelt 09 Apr, 2014
Thank you both ! This worked !😀
thewelt 09 Apr, 2014
Hi there,

I now can read the data from the DB but I want to overwrite stored data with new data instead of writing a new record.
Is that possible ? How ?
GreyHead 09 Apr, 2014
Hi thewelt,

Please see the section "Saving an updated record" in the FAQ

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