How to get a list of unchecked checkboxes when submitting a form?
<p>I have this code for example :</p>

<pre><code>$b = "";
 while ($row = mysql_fetch_array($rows)) {
        if ($row['enabled'] == 1) {
                    $b = "checked";
              } else {
                     $b = "":
                     }
</code></pre>

<p>echo "&lt;\input name='nam[$row[id]]' type='checkbox' value='$row[id]' $b />";</p>

<p>}</p>

<p>When I execute this code, I will get a list of checkboxes, some of them are checked and others are not.</p>

<p>I can use this code to get a list of checked checkboxes.</p>

<pre><code> if (isset($_POST['sub'])) { //check if form has been submitted or not
$nam = $_POST['nam'];
if (!empty($nam)) {

              foreach($nam as $k=&gt;$val){

    // proccess operation with checked checkboxes
               }

}           
</code></pre>

<p>I need to know how I can get list of unckecked checkboxes after submitting the form.</p>

<p>Thanks in advance.</p>
