HTML input checkbox array woes
November 14th, 2007Can anyone explain to me why an input of type checkbox does not submit when not checked? The only thing I can think off is because someone, somewhere, at the beginning of time thought it would be nicer to have to just check if the parameter is set, instead of checking its actual state. And someone else, somewhere else probably came along during revision time and said, “Hey this is stupid, but we can’t change it now since it would break everybody’s code.”
And now here we are, in 2007, unable to use checkbox arrays to act as rows in a column submitted as a result set with other rows and columns. There are a bunch of ways to overcome this limitation with javascript, and I have nothing against javascript. But dammit, why can’t HTML just support this? At least give me a way to specify a value for an unchecked checkbox; it can still default to nothing.
Not everybody has javascript turned on, and if it’s not, then what? I can’t allow the form submission, period? Pardon my French, but bullshit.
Comments please.

The most common “workaround” is using hidden form fields. Using the values of these hidden fields you could check if the corresponding checkbox is set. This can all be done serverside.
I’m not exactly sure what you’re trying to do but I’m pretty sure there’s no need for javascript.