Welcome Guest, Not a member yet? Register   Sign In
[SOLVED] Validating Select Menu with CI4 Form Helper
#3

(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 Shy .

Problem has been been solved! Cool

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! Idea

Heart
Reply


Messages In This Thread
RE: Validating Select Menu with CI4 Form Helper - by BlackBones - 05-25-2021, 11:44 PM



Theme © iAndrew 2016 - Forum software by © MyBB