in reply to Re: Re: CGI Checkboxes
in thread CGI Checkboxes
The param method doesn't seem to work for checkboxes. Here's a cut-down version of what (I think) you're doing:
param('checkbox', 1); print checkbox(-name=>'checkbox', -value=>'checkbox', -label=>'My Checkbox');
Which prints:
<INPUT TYPE="checkbox" NAME="checkbox" VALUE="checkbox">My Checkbox
Whereas code like this:
print checkbox(-name=>'checkbox2', -value=>'checkbox2', -label=>'My Other Checkbox', -checked=>1);
Prints what (I think) you want
--<INPUT TYPE="checkbox" NAME="checkbox2" VALUE="checkbox2" CHECKED>My O +ther Checkbox
"The first rule of Perl club is you don't talk about Perl club."
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: CGI Checkboxes
by Sidhekin (Priest) on Oct 26, 2001 at 19:41 UTC | |
|
Re: Re: Re: Re: CGI Checkboxes
by michellem (Friar) on Oct 26, 2001 at 19:57 UTC |