drgullin / icheck

Highly customizable checkboxes and radio buttons (jQuery & Zepto)
http://fronteed.com/iCheck
7.39k stars 1.63k forks source link

iCheck breaks submitted value being saved #315

Open johngordon71 opened 8 years ago

johngordon71 commented 8 years ago

I am using iCheck to style some checkboxes in a little array:

//Display the checkbox echo "<td width=\"2%\">"; echo "<div class=\"skin skin-square\"><input type=\"checkbox\" class=\"tickbox_".$row_type."\""; if (in_array($keyword['ActivityID'],$user_activities_it)) { echo " checked"; } echo " name=\"ckbox[".$keyword['ActivityID']."]\" id=\"ckbox[".$keyword['ActivityID']."]\"></div>"; echo "</td>\n";

I added <div class=\"skin skin-square\"> and

around the input to style the checkboxes - which works and they look great.

But now when the form is submitted the values are not being stored in my database table - which obviously is a deal breaker.

Any clue as to why that might be, or what solution could be?

Many thanks.

raghavendra89 commented 7 years ago

I've the similar issue. When I submit the form the checkboxes are not included in the $_POST array. On server side if I check the list of fields submitted, I don't find 'iCheck' checkboxes.