Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re: Formatting labels of checkbox groups

by chromatic (Archbishop)
on Aug 16, 2004 at 04:09 UTC ( #383187=note: print w/replies, xml ) Need Help??

in reply to Formatting labels of checkbox groups

I'm not sure exactly what you want, but HTML entities need a trailing semicolon. Use   instead.

Replies are listed 'Best First'.
Re^2: Formatting labels of checkbox groups
by lcanty (Friar) on Aug 16, 2004 at 04:27 UTC
    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

      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://383187]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2023-09-26 09:19 GMT
Find Nodes?
    Voting Booth?

    No recent polls found