Welcome Guest, Not a member yet? Register   Sign In
How to get checkbox value in controller codeigniter?,
#7

(This post was last modified: 05-30-2019, 05:53 AM by dave friend.)

(05-30-2019, 03:55 AM)InsiteFX Wrote: Also note that if a checkbox is not checked it has no value at all.

Unchecked boxes have no value and are not sent to the server. Given 5 checkboxes, if only two are checked then the return from $this->input->post('category') will be an array with two items. If no boxes are checked the return from $this->input->post('category') would be null.
Reply


Messages In This Thread
RE: How to get checkbox value in controller codeigniter?, - by dave friend - 05-30-2019, 05:51 AM



Theme © iAndrew 2016 - Forum software by © MyBB