I am working on a web site that creates check boxes using DOM.

Creation is not an issue, however what I want to do is create an undetermined number of check boxes based on the contents of a database; sometimes I might need five and at other times I might need eleven. I keep thinking in terms of a for/next loop, or something along those lines.

So far I have met with failure.

Does anyone have any ideas or is what I am trying to do not possible.

Any comments would be greatly appreciated.