From: Tom Sawyer Date: 2002-07-19T13:12:01+09:00 Subject: Re: How to test if cgi checkbox is set? 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 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? lets see, some other guesses. is the tag between
? have you jacked with the cgi code at all and inadvertently altered something? that's all i can thing of off the top. "cb_phonelist" should work as the hash index. ~transami -- ~transami _(")_ dobee dobee do... \v/ ^ ^