title: How to process a variable amount of checkboxes with php
body: <p>My goal is to process an unknown amount of names (between 2 and 8) and format it in a nice way.
  The amount of names varies per user. So one user will see 4 names, another will see only 2 names.
  I'll show an example with 3 names.</p>
  
  <pre><code>&lt;input type="checkbox" name="inuser[]" id="u1" value="Floris" /&gt;&lt;label for="u1"&gt;Floris&lt;/label&gt;
  &lt;input type="checkbox" name="inuser[]" id="u2" value="Rosa" /&gt;&lt;label for="u2"&gt;Rosa&lt;/label&gt;
  &lt;input type="checkbox" name="inuser[]" id="u3" value="Lotte" /&gt;&lt;label for="u3"&gt;Lotte&lt;/label&gt;
  </code></pre>
  
  <p>Say Rosa's checkbox is checked. Than I want to store 'Rosa' in the table.
  Say Rosa and Floris are checked. Now I want to store 'Floris and Rosa'
  Say all three are checked. Than I want to store 'Floris, Rosa and Lotte'</p>
  
  <p>I'm not that experienced with arrays. So this is an unsolvable problem for me.
  I've tried to solve it by reading tutorials, but I need someone to help me a bit.</p>
  
  <p>Let me try to explain why the amount of names are variable... On the site students will be able to log there school project activities. They work in groups, but the amount of people differ. So every 'project' will have a different amount of students working on it. </p>
  
  <p>When they log an activity the students who carried out the activity can be checked and the server should turn this into a string (for example: 'Floris, Rosa and Lotte') and store it in the log table. So later on the server will be able to retrieve the log information (What, When, Who, etc.)</p>
  
  <p>Feel free to correct my terrible English. I'm from Holland.</p>