Nightblade has asked for the wisdom of the Perl Monks concerning the following question:
In PHP i can access this like array: $item[3],$item[45],...<input name=item[3] value=""> <input name=item[45] value=""> <input name=item[234] value="">
can i get params into array? @items = param("item"); doesn't work.
I can use cycle to get all members of array,
for($id=0;$id<10000;$id++){$item[$id]=param("item[$id]");}
but often @items contains only few items.
Maybe Perl have better way to get array in CGI?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Input arrays to CGI
by Jazz (Curate) on Jul 24, 2002 at 03:08 UTC | |
|
Re: Input arrays to CGI
by BrowserUk (Patriarch) on Jul 24, 2002 at 04:26 UTC | |
|
Re: Input arrays to CGI
by sedhed (Scribe) on Jul 24, 2002 at 07:03 UTC | |
|
Re: Input arrays to CGI
by BUU (Prior) on Jul 24, 2002 at 05:08 UTC | |
by sedhed (Scribe) on Jul 24, 2002 at 07:24 UTC |