It must suck to be human. If I was born a human (or as you), I would have killed myself.
- Edelweiss, Sagashi-Ateru 2: Prisoners of Fate

Home » Post Item » My Radical Project update…

My Radical Project update…

Monday, December 17, 2007

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!

Posted by roiji at 7:44 pm | permalink

Add a comment