You won't get the parameter if a checkbox is not checked! If you need this, you can submit your form through a javascript, asking if your box not checked and setting a hidden input field to your specific value.
regards Manfred [EMAIL PROTECTED] am 28.08.2003 17:27:44 Bitte antworten an [EMAIL PROTECTED]@inet An: [EMAIL PROTECTED] Kopie: Thema: More HTML than Cocoon but... How to force a checkbox to set some value when it's not checked so that the corresponding request parameter have a proper value. Why? When updating database table, the field (bool_field for example) should be set 0 when false and 1 when true. I use DatabaseAction to do it autamatically, but when checkbox is unchecked the HTTP request doesn't contain bool_field entry. The code like <input type=checkbox name=sth value=1> sets only 'checked value'. _____________________________ Regards, Mariusz Sieraczkiewicz --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
