Get values of unchecked checkboxes
<p>How an i get unchecked Values from my ckeckbox?</p>

<p>I have 3 Radiobuttons. When i click the first all checkboxes must be checked, the second radiobutton unchecked all checkboxes.
The third radiobutton gives the possibility to check some checkboxes, and all checkboxes who was not cheked i want to send the value to the DB from 0 to 1 with an UPDATE Query.
The radiobuttons works fine, but i don't get the values of the unchecked checkboxes to send it to my update query.
Here the code of the first page with the formelements:</p>

<pre><code>    //That is only a short version of my Select who works correct
    $abfrageT = "SELECT DISTINCT id_dexpd, acores.code_regate, detail_exp_devise.num_expertise ...
                    FROM acores, infos_bureau, demande_expertise_dev, detail_exp_devise, agents
                        WHERE acores.id_acores = '$id_acores'
                        AND demande_expertise_dev.date_dem_exp = '$expdev' ...";

    $ergebnisT = mysql_query($abfrageT) or die("Query failed with error: ".mysql_error());

        while($abfrageT = mysql_fetch_assoc($ergebnisT))
        {
            $newcup         =   $abfrageT['coupure'];
            $newpd          =   $abfrageT['code_devise'];
            $newns          =   $abfrageT['num_serie'];
            $IDX            =   $abfrageT['id_dexpd'];
            $NumExp         =   $abfrageT['num_expertise'];

  echo"&lt;tr&gt;";
// Here are the ckeckboxes:
  echo"&lt;td bgcolor=".$bgcolor." id='myGlob2' align='center'&gt;&lt;input type='checkbox' name='check1' value='$abfrageT[id_dexpd]' /&gt;&lt;/td&gt;";
  echo"&lt;td bgcolor=".$bgcolor." id='myGlob2'&gt;&amp;nbsp;&amp;nbsp;". $newcup ." ". $newpd ."&lt;/td&gt;";
  echo"&lt;td bgcolor=".$bgcolor." id='myGlob2' &gt;&amp;nbsp;&amp;nbsp;". $newns ."&lt;/td&gt;";
  echo"&lt;td &gt;&amp;nbsp;&amp;nbsp;&lt;/td&gt;";      
  echo'&lt;/tr&gt;';
</code></pre>

<p>And here the Code of the second page with my update:</p>

<pre><code>$NumExp         = $_GET['NumExp'];
$IDX            = $_GET['check1']; 

$QryUpAnswerIdn = "UPDATE detail_exp_devise SET detail_exp_devise.exp_val  = 1
                WHERE detail_exp_devise.num_expertise = $NumExp
                AND id_dexpd = $IDX";
$ResUpAnswerIdn = mysql_query($QryUpAnswerIdn) or die("Query failed with error: " . mysql_error());

if ($IDX) {
$QryUpAnswerId = "UPDATE detail_exp_devise SET detail_exp_devise.exp_val  = 0
                WHERE detail_exp_devise.num_expertise = $NumExp
                AND id_dexpd = $IDX";
$ResUpAnswerId = mysql_query($QryUpAnswerId) or die("Query failed with error: " . mysql_error());   
}
</code></pre>

<p>Here a picture: 
<img src="http://i.stack.imgur.com/2lTIC.png" alt="enter image description here"></p>

<p>Anybodu an idea?</p>

<p>THX in advance</p>
