Thanks chessbot. I'm using the same name for an arbritray number of multiple checkboxes because it is less complex in PHP to create my array of values after submit. I'm not really interested in the field names, just the values selected for a particular question.
I'm dynamically creating...
Thanks for the suggestion, but the outcome is the same.
which.Question_1.selectedIndex; is undefined whether the
box is checked or not.
Comment on which as a var name is noted also, thanks.
If I have a form, with one checkbox, why does the length attribute return a value of undefined? Also, why can't I access the zero'th element in a single checkbox as in:
if(which.Question_1[0].checked)?
To see how this is causing a problem for me:
http://sacbands.com/testt.php
or
[code]...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.