title: Retrieving values from a checkbox
body: <p>I use a php checkbox and I want to retrieve marked values. <br/>
  My checkbox code :</p>
  
  <pre><code>&lt;label for="cours"&gt;Je suis intéressé par un ou plusieurs cours :&lt;/label&gt;&lt;br&gt;&lt;br&gt;
  &lt;input type="checkbox" name="cours" value="individuel"&gt;Individuel&lt;br&gt;
  &lt;input type="checkbox" name="cours" value="semiprive"&gt;Semi-privé&lt;br&gt;
  &lt;input type="checkbox" name="cours" value="minigroupe"&gt;Mini-groupe&lt;br&gt;
  &lt;input type="checkbox" name="cours" value="intensif"&gt;Intensif&lt;br&gt;
  &lt;input type="checkbox" name="cours" value="entreprise"&gt;Entreprises&lt;br&gt;
  &lt;input type="checkbox" name="cours" value="distance"&gt;A distance&lt;br&gt;
  &lt;input type="checkbox" name="cours" value="telephone"&gt;Par téléphone&lt;br&gt;
  &lt;input type="checkbox" name="cours" value="coaching"&gt;Coaching&lt;br&gt;
  &lt;input type="checkbox" name="cours" value="soutien"&gt;Soutien scolaire&lt;br&gt;
  &lt;input type="checkbox" name="cours" value="diplome"&gt;Diplômes officiels&lt;br&gt;
  </code></pre>
  
  <p>php : </p>
  
  <pre><code>&lt;?php
    if(isset($_POST['envoyer']))
    {
      if(get_magic_quotes_gpc())
      {
        $cours = stripslashes(trim($_POST['cours']));
      }
    }
  ?&gt;
  </code></pre>
  
  <p>I want to put it in the variable msg :</p>
  
  <pre><code>$msg = 'Cours : '.$cours."\r\n";
  </code></pre>
  
  <p>and sending the message throw the php email function.<br/>
  But when I do that like this a receive just the first checked choice...<br/>
  Thank you for your help.<br/>
  Michaël</p>