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
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;
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
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 =