title: Issue with Checkboxes and adding value in the database
body: <p>I'm trying to add values of some checkboxes in my database but it's not really working. It gives "" values:</p>
  
  <p><img src="https://i.stack.imgur.com/PZscm.png" alt="http://img692.imageshack.us/img692/2844/kbyl.png"></p>
  
  <p>This is the query it creates:
  INSERT INTO oudebadkamer(WC, Bad, Douche, Wasbak) VALUES ( '','','','');</p>
  
  <p>The connection is ok and the names are correct since it adds "" in all the fields.</p>
  
  <p>Please help me out.</p>
  
  <pre><code> &lt;form action="formhandle.php" method="POST"&gt;
  
      Wat zit er in uw huidige badkamer?&lt;br /&gt;
      &lt;input type="checkbox" name="Sanitair[]" value="WC" checked&gt;WC&lt;br /&gt;
      &lt;input type="checkbox" name="Sanitair[]" value="Douche" checked&gt;Douche&lt;br /&gt;        
      &lt;input type="checkbox" name="Sanitair[]" value="Bad" checked&gt;Bad&lt;br /&gt;  
      &lt;input type="checkbox" name="Sanitair[]" value="Wasbak" checked&gt;Wasbak&lt;br /&gt;    
  
      &lt;input type="submit" name="Volgende" value="Volgende"/&gt;&lt;br /&gt;
      &lt;?php 
      $checkbox1 = $_POST['Sanitair'];
      if(isset ($_POST ['Volgende']))
      {           
              $querystring = "INSERT INTO oudebadkamer(WC, Bad, Douche, Wasbak)
                            VALUES (
                            '"
                            .$checkbox1[0]."','"
                            .$checkbox1[1]."','"
                            .$checkbox1[2]."','"
                            .$checkbox1[3]."');";
              mysql_query($querystring)or die(mysql_error());
  
              echo $querystring;          
      }
      ?&gt;  
      &lt;/form&gt; 
  </code></pre>