[Templates] Stuff coming through on a GET but not a POST!

Dave Hodgkinson daveh@davehodgkinson.com
Tue, 17 Sep 2002 15:12:26 +0100


I'm sure you remember me wibbling about getting checkbox groups to
work. Well, this is fine:

  [% q.checkbox_group({ Name => 'keyword_id'
               Values =>  keyword.keys.sort
               Default => keywords
               Labels => keyword 
                } ).join("\n") %]

Now, we decided that unpicking them on form entry required some Real
Code:

sub checkbox {
  my $self = shift ;
  my $check = shift || return undef ;

  my $r = $self->{_request} ;
  my @stuph = $r->param('keyword_id') ;
  warn Dumper(\@stuph) ;
  return \@stuph ;
}


This works but only for a GET method! Any clues?

Ta,

Dave // Of course, everyone's at YAPC now but...