I'm having trouble generating a radio button group using Template Toolkit
and CGI.pm
The following code works as required - it prints out a drop down menu with
the correct labels:
[% cgi.popup_menu(
name=>"public",
values=>['n', 'y'],
default=>default_value,
labels=>{'n'=>'No', 'y'=>'Yes'}
)
%]
However, if I change it to
[% cgi.radio_group(
name=>"public",
values=>['n', 'y'],
default=>default_value,
labels=>{'n'=>'No', 'y'=>'Yes'}
)
%]
it prints out: ARRAY(0x8eddc1c)
Can anyone explain how to get the radio_grup example to work? The dropdown
menu would do, but it isn't as good for the end user.
Andrew
--
Andrew McFarland
UNITE Solutions
http://www.unite.net/