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

[eluser]elrolfe[/eluser]
Well actually you can simply put a hidden field just before the checkbox. They both have the same name. No javascript here. If you check the checkbox it will overwrite (kind of) the value of the hidden field.
Is this bad practice?
I used it just the day before (when i wondered why there is no value passed to my controller), so i made sure there is a value in any case.
Just make sure you dont use the same id attribute for different fields for xhtml-compliance.

elrolfe


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