title: How to submit the values of checkbox?
body: <p>On my form I have this part :</p>
  
  <pre><code>&lt;input type="checkbox" name="city" value="Nicosia" class="choosecity"&gt;Nicosia&lt;br&gt;
  &lt;input type="checkbox" name="city" value="Limassol" class="choosecity"&gt;Limassol&lt;br&gt;
  &lt;input type="checkbox" name="city" value="Larnaca" class="choosecity"&gt;Larnaca&lt;br&gt;
  </code></pre>
  
  <p>and on the results page where I use the mail function, I want to get thechecked cities.</p>
  
  <p>I used this without result:</p>
  
  <pre><code>foreach($_POST['city'] as $checkbox){
      echo $checkbox . ' ';
  }
  </code></pre>
  
  <p>What am I missing here?</p>