![]() |
|
Think about Loose Coupling | |
PerlMonks |
Formatting labels of checkbox groupsby lcanty (Friar) |
on Aug 16, 2004 at 03:59 UTC ( #383186=perlquestion: print w/replies, xml ) | Need Help?? |
lcanty has asked for the wisdom of the Perl Monks concerning the following question:
Morning fellow monks, Im having troubles with displaying the formatting of the labels in a checkbox_group. Basically what im trying to achieve is to create a horizontal list of check boxes, the labels for these checkboxes will vary and so must the formatting. As shown in the code below...
the problem i have is when i try to place any tabs or extra spaces in the description bits for $the_labels{$bit} they are removed when the routine is returned and displayed on the web page.
Any help on what i might be doing wrong would be appreciated.
TIA Li
Updated for clarity. What i've got is some perl CGI scripts, one of these scripts functions is to display a vertical list of checkboxes that has a corresponding description next to it. The code i got for displaying a checkbox_group came from Perl monks CGI help pages. http://www.perlmonks.com/index.pl?node=perlman%3Alib%3ACGI%3A2 From this code it shows that a checkbox_group label is a pointer to an associative array relating the checkbox values to the user-visible labels.
Back to
Seekers of Perl Wisdom
|
|