title: determine whether checkbox is checked php $_GET
body: <p>I just want to have php determines whether a checkbox is checked, but I am running into a problem of getting the right return.  Help please.</p>
  
  <p>My html code </p>
  
  <pre><code>    &lt;label&gt;
      &lt;input name="Language" type="checkbox" id="aa"  checked="checked"  /&gt;
      One&lt;/label&gt;
      &lt;label&gt;
      &lt;input name="Language" type="checkbox" id="bb" /&gt;Two&lt;/label&gt;
      &lt;label&gt;
     &lt;input type="checkbox" name="Language"  id="cc" /&gt;Three&lt;/label&gt;
  </code></pre>
  
  <p>I pass the values to php by the $_GET method</p>
  
  <p>my php code:</p>
  
  <pre><code>$aa=$_GET["aa"];
  $bb=$_GET["bb"];
  $cc=$_GET["cc"];
  
  
  echo $aa."&lt;br&gt;";
  echo $bb."&lt;br&gt;";
  echo $cc."&lt;br&gt;";
  </code></pre>
  
  <p>the output is 
  true
  false
  false</p>
  
  <p>I next want to just determine if each box is checked and if so, do something.</p>
  
  <pre><code>if ($aa == true) { $abc="checked";}
  else { $abc="not checked"; }
  
  if ($bb == true) { $cde="checked";}
  else { $cde="not checked"; }
  
  
  if ($fgh == true) { $fgh="checked";}
  else { $fgh="not checked"; }
  </code></pre>
  
  <p>But the if statements always return true, even if the box is not checked.  I tried variations of "===" and "!=", but it does not seem to work.</p>
  
  <p>TIA</p>