Tom Sawyer <transami / transami.net> wrote in message news:<1027052238.7047.112.camel / silver>...
> On Thu, 2002-07-18 at 18:39, Nee Stons wrote:
> > What is the proper way to test if a checkbox field is set? 
> > 
> > The html is <input type="checkbox" name="cb_phonelist"
> > value="phonelist" checked>
> > 
> > When I try cgi["cb_phonelist"], I get a zero-length array no matter
> > the state of the checkbox. Same for cgi["phonelist"]. Same for
> > cgi.params["cb_phonelist"] and cgi.params["phonelist"]
> 
> 
> this shoud work. i don't see anything wrong with it. i've been using
> integers for my value attributes. have you tired that just to see? 

That was it. Thanks.