title: PHP form multiple checkbox groups
body: <p>I have a group of checkboxes in a from and I need to get values with php. Note that div class="group" can also be duplicated onruntime (with jquery) so I may end with multiple div class="group" of checkboxes.</p>
  
  <p>Is there a way to set checkboxes name so form data gets grouped together for each "group", or whatever is easier to handles afterwards? There is also a problem of checkboxes that were not checked, so they wont be present in a post data.</p>
  
  <p>I tried using names like this but I dont like the results.</p>
  
  <pre><code>&lt;form&gt;
      &lt;div class="group"&gt;
          &lt;input type="checkbox" name="ev[][time]"&gt;
          &lt;input type="checkbox" name="ev[][space]"&gt;                 
          &lt;input type="checkbox" name="ev[][money]"&gt;
      &lt;/div&gt;
  
      &lt;div class="group"&gt;
          &lt;input type="checkbox" name="ev[][time]"&gt;
          &lt;input type="checkbox" name="ev[][space]"&gt;                 
          &lt;input type="checkbox" name="ev[][money]"&gt;
      &lt;/div&gt;
  &lt;/form&gt;
  </code></pre>