getting Checkbox value in php
<p>When I pass the html form having checkboxes to a php page, when I retrieve them I get value <code>true</code> for all the boxes that I have checked, and <code>false</code> for unchecked boxes. I need to get the value only.</p>

<pre><code>&lt;?php 
$contact=$_POST['contact'];

foreach ($contact as $conid){
   echo $conid
}
?&gt;
</code></pre>
