Checking Checkboxes
Written by Eric Smith, Northstar Computer Systems LLC
If you've got a form with check boxes on it, remember that if the box isn't checked, you won't get a value back in the Request object. This has caused confusion among my students lately, so I came up with an alternate approach that always provides a value: use a radio button. Instead of having a check box, I show two radio buttons: one for yes, one for no. In addition, I pre-select one of the choices so that I will always get a value back. This has the additional effect of being somewhat clearer to new users who aren't familiar with check boxes. Having a simple yes/no response can be easier to understand.
Keywords: [
HTML Tips
]
Publication Date: 11/1/2000
|