Cant get values of checkboxes |
Im trying to insert multiple checkboxes but cant get their values in codeigniter 2
this is my code in View PHP Code: <!-- Multiple Checkboxes (inline) --> PHP Code: public function InsertCheckbox() { PHP Code: $this->estate_m->InsertCheckbox(); EDIT... I have try to edit my code but still no result: PHP Code: public function edit()/*this is controller */
Perhaps this is a dumb question but are you checking your checkboxes? $this->input->post('checkboxes') will return false if none of them are checked.
Well... you did a foreach... but you didn't use the value (you used the array)...
PHP Code: foreach($property_typesRequest as $value){ Also, if you do a foreach, why do you do an insert_batch(), and not an insert()? Website: http://avenir.ro
Problem sloved! http://stackoverflow.com/questions/27776...odeigniter
Thanks for your time! |
Welcome Guest, Not a member yet? Register Sign In |