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

Is there an accepted method for storing the values of a multi select scrolling box as a hidden input tag? This is for the purpose of concurrency on future page requests.
  • Comment on CGI: storing multi-select as hidden input tag

Replies are listed 'Best First'.
Re: CGI: storing multi-select as hidden input tag
by lostjimmy (Chaplain) on Jun 05, 2009 at 18:49 UTC

    IMO, hidden tags are really a complicated and somewhat unmaintainable way of storing input from previous pages.

    You'd be better off taking a look at CGI::Session, which will enable you to easily store/retrieve these parameters server side.

      To be honest, I would agree with that. Not to mention a security issue in some cases. I will have a look at CGI::Session for maintaining stateful variables.
Re: CGI: storing multi-select as hidden input tag
by Corion (Patriarch) on Jun 05, 2009 at 17:57 UTC

    Store them as multiple hidden tags with the same name.