title: when I am trying to get values from checkbox in PHP- i get "on" as an output - how is that?
body: <p>when I am trying to get values from checkbox in PHP , I get 
  this as output, printing $_POST</p>
  
  <pre><code>Array ( [days] =&gt; on [submit] =&gt; save )
  </code></pre>
  
  <p>the view code </p>
  
  <pre><code>        $days_numbers = explode(',',$user-&gt;work_days);
          $week = array('Saturday','Sunday' ,'Monday','Tuesday' ,'Wendnesday' ,'Thursday' ,'Friday');
           ?&gt;
         &lt;form method='post' action='' &gt;
         &lt;?php
              for($i=0 ; $i&lt; count($week); $i++)
             {
          if(in_array($i,$days_numbers))
            { echo "&lt;input type='checkbox' name='days' checked &gt;" . $week[$i]. "&lt;br/&gt;";
           }else 
    echo "&lt;input type='checkbox' name='days'  &gt;" . $week[$i] . "&lt;br/&gt;";
           }
            ?&gt;
  </code></pre>
  
  <p>
                                 </p>