Checkbox boolean value Classic ASP

ampedrider

New Member
I have a checkbox\[code\]<input type="checkbox" name="chkNGI" id="prod_ngi_sn" value="http://stackoverflow.com/questions/14404335/1">\[/code\]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.I've tried\[code\]<input type="checkbox" name="chkNGI" id="prod_ngi_sn" <%if prod_ngi_sn.checked then value="http://stackoverflow.com/questions/14404335/1" else value="http://stackoverflow.com/questions/14404335/0" end if%>>\[/code\]But didn't work.tks
 
Back
Top