title: Send value even for unchecked checkboxes
body: <p>I have a form with 4 checkboxes like this:</p>
  
  <pre><code>  &lt;td&gt;
      &lt;input type="hidden" name = "all_post" value="0" checked&gt;
      &lt;input type="checkbox" name = "all_post" id = "all_post" value="1"&gt; All Posts &lt;br/&gt;
      &lt;input type="hidden" name = "others_post" value="0" checked&gt; 
      &lt;input type="checkbox" name = "others_post" id = "others_post" value="1"&gt; Other's Posts &lt;br/&gt;
      &lt;input type="hidden" name = "clients_post" value="0" checked&gt;
      &lt;input type="checkbox" name = "clients_post" id = "clients_post" value="1"&gt; Cilent's Post &lt;br/&gt;
      &lt;input type="hidden" name = "assigned_post" value="0" checked&gt;
      &lt;input type="checkbox" name = "assigned_post" id = "assigned_post" value="1"&gt; Task Assigned 
    &lt;/td&gt;
  </code></pre>
  
  <p>If a checkbox is checked, I want it to return "1" but if it is unchecked I want it to return "0" thus I have a hidden checkbox with the same name. My server handles checkboxes in that it will send both hidden and unhidden checkbox values of ("0","1") and I only want to receive one value. All the hidden checkboxes are checked by default to send "0" but I want to make it so that if the unhidden checkbox is checked then the hidden one will become unchecked so only 1 value gets sent. How would I approach that? </p>
  
  <p><strong>TL:DR</strong>
  I want to send a value of "0" if an option is not checked and "1" if an option is checked</p>