Welcome Guest, Not a member yet? Register   Sign In
How to pass dynamical field names to validation object?
#2

[eluser]SitesByJoe[/eluser]
Here's what you need to do:

Create a variable, named "$fields" (or something like that) and then create a conditional check that either dumps your database->get() into the $fields variable, or your validation object into the $fields variable.

That way you can use the same variables in your form view.

Hopefully that makes sense. I'm just finally figuring the validation/dynamic data in forms myself.


Messages In This Thread
How to pass dynamical field names to validation object? - by El Forum - 02-19-2008, 03:10 AM
How to pass dynamical field names to validation object? - by El Forum - 02-19-2008, 08:56 AM
How to pass dynamical field names to validation object? - by El Forum - 02-19-2008, 12:12 PM
How to pass dynamical field names to validation object? - by El Forum - 11-18-2008, 04:30 PM



Theme © iAndrew 2016 - Forum software by © MyBB