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.
This is my html code
<form action="" method="post">
<h3>Colors:</h3>
<input type="checkbox" name="checkbox1" value="White"> White </br>
<input type="checkbox" name="checkbox2" value="Red"> Red </br>
<input type="checkbox" name="checkbox3" value="Blue"> Blue </br>
<input type="checkbox" name="checkbox4" value="Green"> Green </br>
<input type="submit" name="save">
</form>
Table Name: Products
Columns: Product_name, Colors