gph1 had the solution...
<input type="checkbox" onclick="if(this.checked){do_something(true)}else{do_something(false)}">
function do_something(val) {
if(val == 'true')
the_other_form.value = 'the checkbox was checked'
else
the_other_form.value = 'the checkbox was NOT...
you could parse out key/value pairs from an input type submit (using location.href or location.search)
<script>document.write("<form id=my_form action=" + location.href + ">")</script>
<p>Choose your pizza:</p>
<p>
<input type="checkbox" name="val_1"...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.