in reply to Re: More efficient reading of forms in CGI
in thread More efficient reading of forms in CGI

This method also elegantly handles input fields with multiple values, such as checkboxes and pulldown menus (multiple select). If the name parameter that bear0053 describes is from a set of checkboxes, and the names Bob and Joe were selected, $pairs{name} would contain 'Bob' and 'Joe' separated by NULL character ( \0 ). Very easy to parse, if needed. I think that your way will squash all but the first value (not very nice if you're Joe).

You will need CGI version 2.53 or higher to use Vars().

bassplayer