beginr has asked for the wisdom of the Perl Monks concerning the following question:
&build_combo('d'); # function call sub build_combo{ my ($type)=@_; my ($day,$month); my ($i); if ($type=='d'){ $month = $cgi->Select({-name=>"days"}, [ for ($i==0; $i<=31; $i++){ $cgi->option({-value=>"$i"},"$i"), } ] ); }#endif return $month; }#endsub
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: building combo box
by davis (Vicar) on Sep 17, 2006 at 10:03 UTC | |
by Fletch (Bishop) on Sep 17, 2006 at 12:11 UTC | |
by jdtoronto (Prior) on Sep 17, 2006 at 13:13 UTC | |
by jhourcle (Prior) on Sep 17, 2006 at 14:10 UTC | |
by beginr (Novice) on Sep 17, 2006 at 10:12 UTC | |
|
Re: building combo box
by friedo (Prior) on Sep 17, 2006 at 17:49 UTC |