RE: option items sorted in pop-up menus

2005-03-10 Thread Brian Cassidy
Hi Eric, > -Original Message- > >$html .= $cgi->popup_menu(-name => 'id', -values => \%terms); > > where: > >-name is the name of the parameter I want returned >-values is a reference to a hash containing id and value pairs. > > The problem is that -values is a hash, and whe

Re: option items sorted in pop-up menus

2005-03-10 Thread Ashley Sanders
Eric, $html .= $cgi->popup_menu(-name => 'id', -values => \%terms); where: -name is the name of the parameter I want returned -values is a reference to a hash containing id and value pairs. The problem is that -values is a hash, and when CGI.pm displays the pop-up menu the items do not come

option items sorted in pop-up menus

2005-03-10 Thread Eric Lease Morgan
Is there any way to use CGI.pm and still have option items sorted in pop-up menus? CGI.pm provides cook ways to create HTML form. To create a pop-up menu, I can do something like this: # create a hash of terms my @terms = MyLibrary::Term->get_terms(sort => 'name'); my %terms; foreach (@