adrive has asked for the wisdom of the Perl Monks concerning the following question:
#--------------------------------- in template mytemplate.html :my @checkboxOptions = (); for(my $i = 0; $i <= 5; $i++){ my %rowh; $checkboxStr = "<INPUT TYPE=\"CHECKBOX\" NAME=\"desc_$i\"/>My Descript +ion ($i)"; $rowh{"CHECKBOX_OPTION"} = $checkboxStr; push (@checkboxOptions, \%rowh); } $template->param("CHECKBOX_HEADER", \@checkboxOptions);
#----------end Is there something i could add inside the checkbox tag that would allow me to retain all the values?<TMPL_LOOP NAME="CHECKBOX_HEADER"> <TMPL_VAR NAME="CHECKBOX_OPTION"> </TMPL_LOOP>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: HTML::Template with dynamic checkbox
by moritz (Cardinal) on Sep 12, 2007 at 05:27 UTC | |
by adrive (Scribe) on Sep 12, 2007 at 09:02 UTC |