Hi,
I have a script that uses lots of subroutines and most of them it uses Form Parsing. Like this:
if (query =~m/deposit/) {
&deposit;
}
sub deposit {
read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'});
@pairs = split(/&/, $buffer);
foreach $pair (@pairs) {
local($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;
$FORM{$name} = $value;
}
&header("Deposited: $FORM{'deposit'}","Deposit"
;
exit;
}
Don't know why but perl doesn't parse. Is there any script or module that forces form to parse at any given time?
-Aaron
I have a script that uses lots of subroutines and most of them it uses Form Parsing. Like this:
if (query =~m/deposit/) {
&deposit;
}
sub deposit {
read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'});
@pairs = split(/&/, $buffer);
foreach $pair (@pairs) {
local($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;
$FORM{$name} = $value;
}
&header("Deposited: $FORM{'deposit'}","Deposit"

exit;
}
Don't know why but perl doesn't parse. Is there any script or module that forces form to parse at any given time?
-Aaron