Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re^2: Formatting labels of checkbox groups

by lcanty (Friar)
on Aug 16, 2004 at 04:27 UTC ( #383190=note: print w/replies, xml ) Need Help??

in reply to Re: Formatting labels of checkbox groups
in thread Formatting labels of checkbox groups

thanks for the quick reply chromatic,

sorry i hadnt made myself clearer. 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.
Now this description is actually derived from different places, so when i display the check_boxes, instead of the label being one complete string seperated by a single space, i actually require tabs and multiple spaces in the description.

The code i got for displaying a checkbox_group came from Perl monks CGI help pages.

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.

i did try placing a semi colon into my code but now it prints the textboxes as expected as well as the   between each description item

Replies are listed 'Best First'.
Re^3: Formatting labels of checkbox groups
by Zed_Lopez (Chaplain) on Aug 16, 2004 at 06:39 UTC
    That's because checkbox HTML-escapes its label parameters. You can call checkbox with -label => '' and then put in your string with  's by hand after the checkbox.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://383190]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (2)
As of 2023-06-01 21:28 GMT
Find Nodes?
    Voting Booth?

    No recent polls found