title: Saving data from checked checkboxes to one row in the database in php
body: <p>How can I save the data that was checked in the check boxes and will be inserted to one row in the database? For example the user clicks the two check boxes (Red and Blue). When the save button is clicked, the values of Red and Blue will be save to one row (Colors) in the Products table.</p>
  
  <p>This is my html code</p>
  
  <pre><code>&lt;form action="" method="post"&gt;
          &lt;h3&gt;Colors:&lt;/h3&gt;
          &lt;input type="checkbox" name="checkbox1" value="White"&gt; White &lt;/br&gt;
          &lt;input type="checkbox" name="checkbox2" value="Red"&gt; Red &lt;/br&gt;
          &lt;input type="checkbox" name="checkbox3" value="Blue"&gt; Blue &lt;/br&gt;
          &lt;input type="checkbox" name="checkbox4" value="Green"&gt; Green &lt;/br&gt;
  
          &lt;input type="submit" name="save"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Table Name: Products</p>
  
  <p>Columns: Product_name, Colors</p>