A checked checkbox simply sends its value
attribute. An unchecked checkbox doesn’t send itself in the form.
Therefore, a simple test if the checkbox’s name
attribute was posted can determine if it was checked or not.
A checked checkbox simply sends its value
attribute. An unchecked checkbox doesn’t send itself in the form.
Therefore, a simple test if the checkbox’s name
attribute was posted can determine if it was checked or not.