title: Checkbox boolean value Classic ASP
body: <p>I have a checkbox</p>
  
  <pre><code>&lt;input type="checkbox" name="chkNGI" id="prod_ngi_sn" value="1"&gt;
  </code></pre>
  
  <p>When it is checked I pass the value 1, but when it is not checked any value is passed.
  I have to pass the value 0.</p>
  
  <p>I've tried</p>
  
  <pre><code>&lt;input type="checkbox" name="chkNGI" id="prod_ngi_sn" &lt;%if prod_ngi_sn.checked then value="1" else value="0" end if%&gt;&gt;
  </code></pre>
  
  <p>But didn't work.</p>
  
  <p>tks</p>