how to pass value of checked checkbox in php
<p>Hi i am generating checkbox list by using a for each loop, I want to pass the <code>value</code> of checked checkbox into database.</p>

<pre><code>foreach($this-&gt;lis as $lst)
 {?&gt;
  &lt;tr&gt;
    &lt;td&gt;
     &lt;input type="checkbox" name="list" value="1" /&gt;
         &lt;label for="list_32"&gt;&lt;?php echo $list-&gt;nList ?&gt;&lt;/label&gt;
    &lt;/td&gt;
  &lt;/tr&gt;
 &lt;?php } ?&gt;
</code></pre>

<p>when i checked the checkbox i want to pass the label name into the database can someone help.</p>
