in reply to Re: Creating HREF links on radio group items
in thread Creating HREF links on radio group items
You'll need to undef autoEscape if you want this to work here, otherwise the labels will be the actual HTML generated by the a() method.
You'll also need to import the autoEscape method, by addingautoEscape(undef); print radio_group (-name => "item", -value => ["B","T","S","M"], -labels => { 'B' => 'Item '.a({-href=>"/help/b.html"},"B").' + ($10)', 'T' => 'Item .a({-href=>"/help/b.html"},"T").' +($50)', 'S' => 'Item .a({-href=>"/help/b.html"},"S").' +($200)', 'M' => 'Item .a({-href=>"/help/b.html"},"M").' +($500)' }, -linebreak => 1); autoEscape(1);
use CGI qw/:standard autoEscape/;
Maybe there's a more elegant way to do this? Anyone?
Update: Fixed syntax errors I cut-and-copied. . .
-Any sufficiently advanced technology is
indistinguishable from doubletalk.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Creating HREF links on radio group items
by little (Curate) on Jun 21, 2002 at 19:04 UTC | |
|
Re: Re: Re: Creating HREF links on radio group items
by Anonymous Monk on Jun 21, 2002 at 19:53 UTC | |
by Hero Zzyzzx (Curate) on Jun 21, 2002 at 20:12 UTC | |
by Anonymous Monk on Jun 22, 2002 at 01:44 UTC | |
by Anonymous Monk on Jun 21, 2002 at 20:11 UTC |