title: Can't get value checkbox checked form php
body: <p>My checkbox does not get value after sending form ...</p>
  
  <p><strong>My form</strong></p>
  
  <pre><code>&lt;input name="username" type="text" autocomplete="off" id="username" /&gt;
  &lt;input type="checkbox" id="atur_peg" name="atur_peg" value="Ya" checked /&gt;
  </code></pre>
  
  <p><strong>My PHP</strong></p>
  
  <pre><code>&lt;?php
  
  echo $username=$_POST['username']; // this can get value
  echo $atur_peg=$_POST['atur_peg']; // and this can't get value
  
  ?&gt;
  </code></pre>
  
  <p><strong>this full form</strong></p>
  
  <pre><code>&lt;form class="cmxform" id="tambahuser"  name="kepuasan_user" method="post" action="user/tambahuserproses.php"&gt;
  
  &lt;label&gt;Username&lt;/label&gt;
  :
  &lt;input name="username" type="text" autocomplete="off" id="username"  size="40" maxlength="50" /&gt;
  &lt;span id="pesan"&gt;&lt;/span&gt;
    &lt;br /&gt;
    &lt;label&gt;Password&lt;/label&gt;
  : &lt;input name="password" type="password" autocomplete="off" id="password" class="showpassword" size="40" maxlength="50" /&gt;
         &lt;p&gt;
  &lt;label&gt;&lt;strong&gt;Atur untuk Pegawai ?&lt;/strong&gt;&lt;/label&gt;&lt;input type="checkbox" id="atur_peg" name="atur_peg" value="Ya" checked /&gt;Ya
    &lt;/p&gt;
      &lt;/form&gt;
  </code></pre>
  
  <p>How to correct ?</p>