Welcome Guest, Not a member yet? Register   Sign In
Database populated form fields (e.g. edit mode) and form validation
#1

[eluser]onblur[/eluser]
How are people managing the editing/updating of database records using CI form validation (v1.7) when validation fails?

The scenario is:
1. retrieve record from database for editing (ie. editing form is pre-populated with data)
2. submit edited record
3. controller does form validation - one or more validation rules are not met
4. reload form and display **submitted** data, and display validation errors

How are folks reloading the form with the submitted (edited) data?

I can reload the form with the original unedited data, but I want to display the edited data so the user can correct mistakes rather than edit all over again.


Messages In This Thread
Database populated form fields (e.g. edit mode) and form validation - by El Forum - 12-16-2008, 10:00 PM



Theme © iAndrew 2016 - Forum software by © MyBB