Welcome Guest, Not a member yet? Register   Sign In
Update a user and still use validation class?
#9

[eluser]Colin Williams[/eluser]
No, I just don't think you understand the methodology I'm laying out. If validation fails, the form should be populated with the incorrectly supplied values. So, in the instance this happens, the $values passed to the view with the form need to be updated with the posted values.

So, new form:

1. $values = default values
2. if validation fails, $values = posted values

And, an edit form:

1. $values = db values
2. if validation fails, $values = posted values


Messages In This Thread
Update a user and still use validation class? - by El Forum - 09-06-2008, 03:43 AM
Update a user and still use validation class? - by El Forum - 09-12-2008, 01:16 PM
Update a user and still use validation class? - by El Forum - 09-12-2008, 01:38 PM
Update a user and still use validation class? - by El Forum - 09-12-2008, 01:50 PM
Update a user and still use validation class? - by El Forum - 09-12-2008, 03:18 PM
Update a user and still use validation class? - by El Forum - 09-13-2008, 06:41 AM
Update a user and still use validation class? - by El Forum - 09-13-2008, 10:07 AM
Update a user and still use validation class? - by El Forum - 09-13-2008, 10:17 AM
Update a user and still use validation class? - by El Forum - 09-13-2008, 10:23 AM
Update a user and still use validation class? - by El Forum - 09-14-2008, 07:52 AM



Theme © iAndrew 2016 - Forum software by © MyBB