title: checkbox array html php
body: <p>I am having a lot of trouble getting a checkbox in a form to then pass to the .php file.. 
  The html looks like</p>
  
  <pre><code>&lt;td&gt;&lt;label for="services"&gt;Services Requested:&lt;/label&gt;&lt;/td&gt;
  &lt;td&gt;&lt;form name="services" action="processForm.php" method="post"&gt;
            &lt;input type="checkbox" name="services[]" value="Massage" /&gt;Massage
            &lt;input type="checkbox" name="services[]" value="Facial" /&gt;Facial
            &lt;input type="checkbox" name="services[]" value="Manicure" /&gt;Manicure
            &lt;input type="checkbox" name="services[]" value="Pedicure" /&gt;Pedicure
            &lt;/form&gt;
        &lt;/td&gt;&lt;/tr&gt;
  </code></pre>
  
  <p>I am setting <code>$services = $_POST['services'];</code> right away in processForm.php. 
  But this error which exists further down in processForm.php still comes up every time.</p>
  
  <pre><code>if(empty($services)) {
  $errors[] = "You must choose at least one service.";
  </code></pre>
  
  <p>}</p>