Finally, after 4 days of research I finally got the code that I needed…
# Process POST form variables.
if ($ENV{'REQUEST_METHOD'} eq "POST")
{
read(STDIN, $stuff, $ENV{'CONTENT_LENGTH'});
@pairs = split(/\&/, $stuff);
foreach $pair (@pairs)
{
($name, $value) = split(/=/, $pair);
$$name = $value;
$$name =~ s/%(..)/chr(hex($1))/ge;
$$name =~ s/\+/ /g;
}
}
it's called POST PROCESSING / PROCESSING POST from http://evolt.org
now, my only problem is actually throwing the real values to the script now that I've already tried the script using serverpost testcases.
I'll update as soon as it's finished.. and maybe I'll post some screenies!