in reply to Populating forms

The CGI module you're already using has a   -value/-values   switch to many of its functions/methods. Just use that.

Replies are listed 'Best First'.
Re: Re: Populating forms
by nodata (Initiate) on Mar 29, 2004 at 09:21 UTC

    I can't see how I can get CGI.pm to append to an existing piece of HTML, so should I do something like

    my $snippet = $cgi->checkbox_group( -name=>'foo', -value=>['aaa', 'bbb', 'ccc'] );

    then replace [% SOMETHING %] with $snippet?

      I haven't learned much of your approach yet, but if that's the way you build your web pages/templates, it's a viable option.

      Cheers, Sören

      20040329 Edit by Corion: Reparented as per authors request