Welcome Guest, Not a member yet? Register   Sign In
Validate an edit form
#11

[eluser]Colin Williams[/eluser]
The answer is simple. You pass data to a view the same way every time, as the second parameter of the $this->load->view() function. So, get your data from the DB first, then overwrite this data with anything posted, then pass it all to the view. The view with either get a). the original db values or b.) the values they posted (like, if validation fails)




Theme © iAndrew 2016 - Forum software by © MyBB