numero = 19173
interpreted = N
texte = On 7/29/1998 9:18 am, Charles Kefauver so noted...>This is not really a Webcatalog question, but really an HTML question.>>How can I use checkboxes for editing boolean fields in a database?>>With Radio buttons I can use this:>[theField]=1]CHECKED[/ShowIf]>On >[theField]=0]CHECKED[/ShowIf]>Off >>But what about checkboxes? The value tag sent by the browser does not >change according to the CHECKED state of the checkbox?>>VALUE=[theField] [showif [theField]=1]CHECKED[/ShowIf]>>>Does not work...It would just have to be:For whatever is processing this form, if the checkbox is checked, theField = 1. If it's not checked, the value will be undefined, so theField = [theField]. You may want to filter out these undefined values before adding them to your database.Rob MarquardtDesigner/Resident WireheadToast Design300 First Avenue North, Suite 150Minneapolis MN 55401612.330.9863 v612.321.9424 fwww.toastdesign.com
Associated Messages, from the most recent to the oldest:
On 7/29/1998 9:18 am, Charles Kefauver so noted...>This is not really a Webcatalog question, but really an HTML question.>>How can I use checkboxes for editing boolean fields in a database?>>With Radio buttons I can use this:>[theField]=1]CHECKED[/ShowIf]>On >[theField]=0]CHECKED[/ShowIf]>Off >>But what about checkboxes? The value tag sent by the browser does not >change according to the CHECKED state of the checkbox?>>VALUE=[theField] [showif [theField]=1]CHECKED[/ShowIf]>>>Does not work...It would just have to be:For whatever is processing this form, if the checkbox is checked, theField = 1. If it's not checked, the value will be undefined, so theField = [theField]. You may want to filter out these undefined values before adding them to your database.Rob MarquardtDesigner/Resident WireheadToast Design300 First Avenue North, Suite 150Minneapolis MN 55401612.330.9863 v612.321.9424 fwww.toastdesign.com
Rob Marquardt
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...