Re: [whatwg] non-checked checkbox posting success?

2006-08-15 Thread Ian Hickson
On Mon, 24 Jul 2006, Ric Hardacre wrote: When using checkboxes in forms i find myself doing this input type=checkbox name=foo value=true input type=hidden name=foo value=false and retrieving the value from the posted form data a bit like this if( checkbox.value == false )then

Re: [whatwg] non-checked checkbox posting success?

2006-07-25 Thread Alexey Feldgendler
On Mon, 24 Jul 2006 22:59:07 +0700, Ric Hardacre [EMAIL PROTECTED] wrote: When using checkboxes in forms i find myself doing this I don't see how this input type=checkbox name=foo value=true input type=hidden name=foo value=false if( checkbox.value == false )then bSomeBool = false;

Re: [whatwg] non-checked checkbox posting success?

2006-07-25 Thread Matthew Raymond
What I don't understand about this whole unchecked value issue is why this is even necessary. The status of a check box is a binary value. If no value is returned, the server can simply assume the unchecked value. In fact, the server could initially set a string to the unchecked value, then

[whatwg] non-checked checkbox posting success?

2006-07-24 Thread Ric Hardacre
When using checkboxes in forms i find myself doing this input type=checkbox name=foo value=true input type=hidden name=foo value=false and retrieving the value from the posted form data a bit like this if( checkbox.value == false )then bSomeBool = false; else bSomeBool =