title: How to retrieve checked checkbox with my code?
body: <p>HTML CODE :</p>
  
  <pre><code>&lt;input type='checkbox' name='cbox[]' value='Jaywalking'  /&gt; 
  Jaywalking&lt;br&gt;
  &lt;input type='checkbox' name='cbox[]' value='Littering'/&gt; 
  Littering&lt;br&gt;
  &lt;input type='checkbox' name='cbox[]' value='Illegal Vendor' /&gt; 
  Illegal Vendor
  </code></pre>
  
  <p>POST CODE:</p>
  
  <pre><code>if(is_array($_POST['cbox'])) $violation_save=implode(',',$_POST['cbox']); else $violation_save=$_POST['cbox'];
  
  mysql_query("UPDATE tblcitizen SET violation='$violation_save' WHERE id='$id'") or die mysql_error());
  </code></pre>
  
  <p>What is the easiest way to retrieve checked checkbox value into the database? What is the proper way to retrieve it base on my code? </p>