need to access the checked checkbox
<p>I need to get the value that has been assigned to the checkbox that is checked ,
and I've used for loop to show the checkboxes , now i need to access the values of the checkboxes that are checked only ,</p>

<p>Can anybody help me out with this ?</p>

<pre><code>foreach($inbox as $inbox_info) 
{
    &lt;input type="checkbox" id="checkUnread" name="checkUnread" value="&lt;? echo $inbox_info['inbox_id'];?&gt;" /&gt;
}
</code></pre>

<p>i am trying to do a mail inbox functionality , and i need to get the id of the elements that has its checkbox checked so that i can flag those elements unread in the database</p>
