medalto has asked for the wisdom of the Perl Monks concerning the following question:
this also has a button persistently selected that doesnt clear with a 'form reset'my %vars = $q->Vars();#print Dumper %vars; $q->delete_all; print $q ->start_form; print $q->radio_group(-name=>'options', -values=>[keys %details] ,-col +umns => 4, -rows => 2);
but this doesn'tforeach my $s (keys %details) {print "<input type=\"radio\" name=\"options\" value=".$s,">".$s." " +; }
so going back to the originalforeach my $s (@opts) {print "<input type=\"radio\" name=\"options\" value=".$s,">".$s." " +; }
is there an explanation?print $q->radio_group(-name=>'options', -values=>\@opts,columns => 4,- +rows> 2, -default=>'');
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: clearing radio buttons
by scorpio17 (Canon) on Jan 22, 2010 at 18:14 UTC | |
|
Re: clearing radio buttons
by ikegami (Patriarch) on Jan 22, 2010 at 18:34 UTC | |
by medalto (Novice) on Jan 23, 2010 at 11:34 UTC | |
by ikegami (Patriarch) on Jan 23, 2010 at 18:01 UTC | |
|
Re: clearing radio buttons
by MidLifeXis (Monsignor) on Jan 22, 2010 at 18:03 UTC |