in reply to building combo box
Although this isn't the correct way of doing it — you should use one of the DateTime modules to get the number of days in the month (How many days are there in February 2000? February 2004? February 2100?)#!/usr/bin/perl use warnings; use strict; use CGI; my $cgi = CGI->new(); print $cgi->popup_menu(-name=>"Days", -values=>[ 1 .. 31]);
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: building combo box
by Fletch (Chancellor) on Sep 17, 2006 at 12:11 UTC | |
Re^2: building combo box
by jdtoronto (Prior) on Sep 17, 2006 at 13:13 UTC | |
by jhourcle (Prior) on Sep 17, 2006 at 14:10 UTC | |
Re^2: building combo box
by beginr (Novice) on Sep 17, 2006 at 10:12 UTC |