I'm using the following snippet of code to put all form data passed into a
hash table.
$form_data_size = $ENV{'CONTENT_LENGTH'};
read (STDIN, $form_data, $form_data_size);
@info_returned = split (/&/,$form_data);
foreach $keyvalue (@info_returned)
{
($key, $value) = split(/=/, $keyvalue);
$value =~ tr/+/ /;
$value =~ s/%([\dA-Fa-f][\dA-Fa-f])/pack("C",hex($1))/eg;
$pairs{$key} = $value;
}
is there a way to build a url that will pass data that is then parsed out
into a hash table.
what I want to do is be able to have a regular link on a webpage that
points to this one and also passes a parameter to it.
this code sample works fine if I use a form on the referring page to pass
my info, but that's not what I want.