On Wed, Jan 30, 2002 at 12:33:30PM +0000, Andrew McFarland wrote:
> I'm having trouble generating a radio button group using Template Toolkit 
> and CGI.pm

> [% 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? 

from 'perldoc CGI'

       The value returned by radio_group() is actually an array
       of button elements.  You can capture them and use them
       within tables, lists, or in other creative ways:

So you probably want to iterate through those with a FOREACH or somesuch ...

Tony
-- 
--------------------------------------------------------------------------
 Tony Bowden | [EMAIL PROTECTED] | http://www.tmtm.com/
                     The problem is communication. Too much communication.
--------------------------------------------------------------------------


Reply via email to