[SOLVED] Validating Select Menu with CI4 Form Helper |
(05-24-2021, 01:35 PM)includebeer Wrote: There's no difference in validating a text input filed or a select field. When you get the values in your controller, it's just values in the $_POST array. CodeIgniter don't even know if it comes from an input text or a select field. Maybe post your form and your controller. There must be some bug in your code. Thank you @includebeer . Problem has been been solved! There were validation errors because I previously matched CI Model $allowedFields array variable with my form input field names. Matching CI Model $allowedFields array variable with database table fields solved the problem! Sometimes, one just only needs an extra pair of eyes! |
Messages In This Thread |
[SOLVED] Validating Select Menu with CI4 Form Helper - by BlackBones - 05-24-2021, 12:34 PM
RE: Validating Select Menu with CI4 Form Helper - by includebeer - 05-24-2021, 01:35 PM
RE: Validating Select Menu with CI4 Form Helper - by BlackBones - 05-25-2021, 11:44 PM
RE: Validating Select Menu with CI4 Form Helper - by InsiteFX - 05-26-2021, 09:15 AM
RE: Validating Select Menu with CI4 Form Helper - by BlackBones - 05-26-2021, 09:55 AM
|