Hello,
I was hoping that you good people could help me. I am trying to figure out how to take data from a address line
and insert it into a cgi program
http://www.domain.com/bin/sendnotice.cgi?category=ArtsArt&email=me@me.
+com&password=369728
Data trying to transfer into cgi:
catgory
email
password
Here's the program that I'm trying to transfer the data into, and the part that I can't figure out:
read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'});
@pairs = split(/&/, $buffer);
foreach $pair (@pairs) {
($name, $value) = split(/=/, $pair);
$value =~ tr/+/ /;
$value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;
$value =~ s/\n/ /g;
$request{$name} = $value;
}
$url = "http://www.domain.com";
$refer = "http://www.domain.com";
$maillocation = "/usr/sbin/sendmail";
$stmail="$request{'category'}" ;
$tmail="$request{'email'}" ;
$tnmail="$request{'password'}" ;
Any help would be greatly apprecieted.
Lisa