Welcome Guest, Not a member yet? Register   Sign In
Set Message in form validation for Certain Input Name
#3

[eluser]MathBoon[/eluser]
You could override the form_validation library and create extra methods like "required_checkbox" or "required_radio".

This would not be automatic though, but i don't see any way in which CI could do this automatically.

Unfortunately CI (or php?) doesn't know what kind of input it was that led to the specific $_POST element, so you can't differ between radios, checkboxes or normal text inputs.


Messages In This Thread
Set Message in form validation for Certain Input Name - by El Forum - 05-03-2011, 12:30 PM
Set Message in form validation for Certain Input Name - by El Forum - 05-03-2011, 01:03 PM
Set Message in form validation for Certain Input Name - by El Forum - 05-03-2011, 05:09 PM
Set Message in form validation for Certain Input Name - by El Forum - 05-04-2011, 04:12 AM
Set Message in form validation for Certain Input Name - by El Forum - 05-04-2011, 06:39 AM
Set Message in form validation for Certain Input Name - by El Forum - 05-05-2011, 03:22 AM



Theme © iAndrew 2016 - Forum software by © MyBB