I have a dropdown labeled “amenities[]” and it’s an array. When I use CodeIgniter’s form_validation, I want to re-populate it properly using set_value, but I’m not able to. Anyone have any input on this?
I have a dropdown labeled amenities[] and it’s an array. When I use CodeIgniter’s
Share
Looking at the source for Codeignitor 1.7.2 the set_value implementation is:
Note it does not support arrays. On the other hand Codeignitor’s set_select does indeed support arrays: