in reply to Re: passing a variable from a link
in thread passing a variable from a link
Update:
Here is some ugly not use strict-able code (it creates variables on the fly) that can parse out the environment string:
Now that's ugly. But it should work.$myTmp = $ENV{'QUERY_STRING'}; @words = split '&',$myTmp; my $counter = 0; while ($words[$counter]) { my @tmpWords = split '=',$words[$counter]; $tmpWords[1] =~ tr/+/ /; $tmpWords[1] =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg; my $tmpName = $tmpWords[0]; $$tmpName = $tmpWords[1]; $counter++; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: passing a variable from a link
by Flame (Deacon) on Nov 17, 2001 at 21:16 UTC |