Welcome Guest, Not a member yet? Register   Sign In
Bug in validation library (Codeigniter 1.5.4)
#5

[eluser]elrolfe[/eluser]
Hi, its not as elegant as hacking a core library, but you can put a hidden field just before the checkbox. The hidden field should have the same name as the ckeckbox, but a different value ( i guess the checkbox has the value 1, so give the hidden field value 0 for example).

If you do it that way you can validate the field with CI normally. More important, you can update the CI-framework without caring about small hacks.

However, i dont know if the markup is still valid xhtml...

Cheers


Messages In This Thread
Bug in validation library (Codeigniter 1.5.4) - by El Forum - 11-15-2007, 02:26 PM
Bug in validation library (Codeigniter 1.5.4) - by El Forum - 11-15-2007, 03:28 PM
Bug in validation library (Codeigniter 1.5.4) - by El Forum - 11-16-2007, 12:59 AM
Bug in validation library (Codeigniter 1.5.4) - by El Forum - 11-16-2007, 01:15 AM
Bug in validation library (Codeigniter 1.5.4) - by El Forum - 11-16-2007, 02:02 AM
Bug in validation library (Codeigniter 1.5.4) - by El Forum - 11-16-2007, 07:17 AM
Bug in validation library (Codeigniter 1.5.4) - by El Forum - 11-16-2007, 08:38 AM
Bug in validation library (Codeigniter 1.5.4) - by El Forum - 11-16-2007, 08:45 AM
Bug in validation library (Codeigniter 1.5.4) - by El Forum - 12-07-2007, 11:09 PM
Bug in validation library (Codeigniter 1.5.4) - by El Forum - 12-22-2007, 03:20 AM



Theme © iAndrew 2016 - Forum software by © MyBB