> I'm trying to format the text used in my labels for a radio box group
> created with CGI.pm... Among other things, I've tried:
>
> I know there must be a way to do this and any help to get me over this
> hump would be much appreciated.
>
The simplest solution is to temporarily turn off autoEscape
#!/usr/bin/perl
use strict;
use warnings;
use CGI;
my $q = new CGI;
$q->autoEscape(0);
my %options = ( PayPal => '<b>Pay Online With Winning PayPal</b>',
Check => '<b>Pay With Sucky Old Check</b>' );
print $q->radio_group( -name => 'payment_type',
-values => [ keys %options ],
-default => 'PayPal',
-linebreak => 1,
-labels => \%options ) ;
$q->autoEscape(1);
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Lawrence Statton - [EMAIL PROTECTED] s/aba/c/g
Computer software consists of only two components: ones and
zeros, in roughly equal proportions. All that is required is to
sort them into the correct order.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>