title: Get POST data from multiple checkboxes?
body: <p>Im trying to create a form using PHP and I cant seem to find a tutorial on what I need so thought Id ask on here.</p>
  
  <p>I have a multiple checkbox option on my page...</p>
  
  <pre><code> &lt;li&gt;
      &lt;label&gt;What service are you enquiring about?&lt;/label&gt;
      &lt;input type="checkbox" value="Static guarding" name="service"&gt;Static guarding&lt;br&gt;
      &lt;input type="checkbox" value="Mobile Patrols" name="service"&gt;Mobile Patrols&lt;br&gt;
      &lt;input type="checkbox" value="Alarm response escorting" name="service"&gt;Alarm response escorting&lt;br&gt;
      &lt;input type="checkbox" value="Alarm response/ Keyholding" name="service"&gt;Alarm response/ Keyholding&lt;br&gt;
      &lt;input type="checkbox" value="Other" name="service"&gt;Other&lt;input type="hidden" value="Other" name="service"&gt;&lt;/span&gt;
    &lt;/li&gt;
  </code></pre>
  
  <p>I'm not sure however how to collect all checkbox values using POST method? </p>
  
  <p>if i use </p>
  
  <pre><code>$service = $_POST['service'];
  </code></pre>
  
  <p>I only get 'other' returned</p>