Welcome Guest, Not a member yet? Register   Sign In
set_radio() function not repopulating my radio buttons. Can't figure out why
#6

[eluser]Philip Kavanagh[/eluser]
If you want to validate a radio input, you should check for the "on" status rather than the "checked".

Simply create a new callback or extend CI_Form_validation lib.

you would build a proper callback here, but im just making it clear here...

Code:
function is_on($input)
{
   return ($input === 'on') ? TRUE : FALSE;
}


Messages In This Thread
set_radio() function not repopulating my radio buttons. Can't figure out why - by El Forum - 01-19-2012, 05:03 AM



Theme © iAndrew 2016 - Forum software by © MyBB