gogoglou has asked for the wisdom of the Perl Monks concerning the following question:

Hallo, I am using perl together with cgi in order to create a form that will submit some parameters in a search function through DBI to my database. I was wondering if there is any way to construct something different than a checkbox list, since the number of parameters is huge. Thus neither a list of checkboxes, or radio buttons are good enough. is there any other way that someone might be aware of ? Cheers
  • Comment on selecting more than one objects from a list

Replies are listed 'Best First'.
Re: selecting more than one objects from a list
by moritz (Cardinal) on Apr 06, 2010 at 14:38 UTC
    You could offer a free-form text field, together with an AJAX based auto completion mechanism (such as Google Suggest).

    If I remember correct, CGI::Ajax can help you to write such a thing.

    Perl 6 - links to (nearly) everything that is Perl 6.
Re: selecting more than one objects from a list
by almut (Canon) on Apr 06, 2010 at 14:41 UTC
Re: selecting more than one objects from a list
by ww (Archbishop) on Apr 06, 2010 at 14:37 UTC

    A text input box should serve unless there's some reason you can't have users enter the parameters -- separated by whatever works well as a record separator given the kind of terms you expect -- and then use your cgi to separate them and send them on to the DB