Welcome Guest, Not a member yet? Register   Sign In
Form Validation / Pre-populated input fields
#7

[eluser]Adam Griffiths[/eluser]
The form validation library only re-populates form fields if i's told about the fields in such a way that it is supposed to, i.e. using the set_rules method.

If this wasn't the case, then CodeIgniter would need to go through all the post data, and this could be tainted. I've no doubt that Ellis Lab may add this in to CodeIgniter if they feel it will add more value to the framework.

I always add an xss_clean rule or another rule of some sort so everything can be re-populated.


Messages In This Thread
Form Validation / Pre-populated input fields - by El Forum - 08-11-2009, 12:50 PM
Form Validation / Pre-populated input fields - by El Forum - 08-11-2009, 02:16 PM
Form Validation / Pre-populated input fields - by El Forum - 08-11-2009, 02:34 PM
Form Validation / Pre-populated input fields - by El Forum - 08-11-2009, 03:04 PM
Form Validation / Pre-populated input fields - by El Forum - 08-11-2009, 03:22 PM
Form Validation / Pre-populated input fields - by El Forum - 08-11-2009, 05:10 PM
Form Validation / Pre-populated input fields - by El Forum - 08-11-2009, 06:30 PM
Form Validation / Pre-populated input fields - by El Forum - 08-12-2009, 03:03 AM
Form Validation / Pre-populated input fields - by El Forum - 08-16-2009, 05:27 AM
Form Validation / Pre-populated input fields - by El Forum - 08-22-2009, 09:38 PM



Theme © iAndrew 2016 - Forum software by © MyBB