in reply to Passing arrays to a CGI
And the resulting Perl:<input name='form_item' value='one'> <input name='form_item' value='two'> <input name='form_item' value='three'>
In cases where more than one form element uses the same name, CGI.pm will return them as an array, if you call the param method in a list context. Is this what you meant?my $q = new CGI; print join(",", $q->param('form_item')); # one,two,three
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Re: Passing arrays to a CGI
by arturo (Vicar) on Sep 20, 2000 at 23:26 UTC |