title: checkbox value 0 or 1
body: <p>In many cases, I have checkboxes as below</p>
  
  <pre><code> &lt;input type="checkbox" name="custom7" value="1" id="custom7"
   checked="checked"&gt; &lt;label for="custom7"&gt;Email me more info?&lt;/label&gt;
  </code></pre>
  
  <p>Now when the checkbox is checked the value should be 1 as in value=1 . If the checkbox is unchecked, I want the value to be zero as in value=0. How can I do this? </p>