What is the proper way to test if a checkbox field is set?
The html is
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
···
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
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”]
–
~transami
(") dobee dobee do…
\v/
^ ^
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
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.