• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to get checkbox value in controller codeigniter?,

#7
(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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.