[eluser]Unknown[/eluser]
Hello All,
I am writing simple application with two forms:
1) add form
workflow:
- display empty form
- after submit check (using CI validation form class) all fields
- if something wrong display form again with repopulated data and error info
- if all ok put data into mysql
1) edit form
workflow:
- get data from mysql and display filled form to edit
- after submit check all fields using validation rules
- if something wrong display form again with repopulated data and error info
- if all ok update data in mysql
So far add form works good, but I have problem with edit form. I don't know how pass initial data from mysql to edit form and then allow user to edit form.
Please help me solving my problem.
Regards
Adam