Referring to the different types of form entities is a pain. Thus, the following table may help:
Note: All entities may assume prefixes of document.forms[index] and i refers to the index [0 .. n] of that named entity.
If the checkbox is not turned on, no entry appears in the form submission ($QUERY_STRING or <STDIN>)
Despite the VALUE attribute, this is what you get:
input_name=on | ''