anothersmurf has asked for the wisdom of the Perl Monks concerning the following question:
How can I take $INPUT{xxxc}, and use the count to sequentially access $INPUT{xxx1} and $INPUT{xxx2} as it is up to hundreds of entries. The real app recieves data via POST not GET, so don't worry about the max URL length. =)$my_input = $ENV{QUERY_STRING}; @fv_pairs = split /\&/ , $my_input; foreach $pair (@fv_pairs) { if($pair=~m/([^=]+)=(.*)/) { $field = $1; $value = $2; $value =~ s/\+/ /g; $value =~ s/%([\dA-Fa-f]{2})/pack("C", hex($1))/eg; $INPUT{$field}=$value; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: accessing random count CGI parameters
by naikonta (Curate) on Jun 25, 2007 at 03:21 UTC | |
|
Re: accessing random count CGI parameters
by CountZero (Bishop) on Jun 25, 2007 at 05:50 UTC | |
by shmem (Chancellor) on Jun 25, 2007 at 11:19 UTC | |
|
Re: I think I've stepped in it now
by GrandFather (Saint) on Jun 25, 2007 at 02:34 UTC | |
|
Re: accessing random count CGI parameters
by shmem (Chancellor) on Jun 25, 2007 at 11:05 UTC |