Hi Eric, That was wonderfull. I could get the number of cells that were checked. But It should be exciting, if I could get the lables of the cells that were all checked.
foreach my $cell (@rows){
split(/,/);
print $cgi->td("$cell");
for(my $i= 1;$i<=12;$i++){
print $cgi->td($cgi->checkbox(-name=>'checked', -values=>
+["ON"], -default=>'',-label=>"$cell$i")) ;
}
print $cgi->Tr();
}
What I say is I like to have the labels, like A1, D1, E1, if they are checked.these are the labels for each cells. THe code you suggested gives 'on'(which is the default) when a checkbox is checked.Any options?
thanks.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.