Get form values data using GET and POST method in perl script programing

by kalai 2009-01-08 16:13:56

Get values passed along with the url using GET Method


sub populateQueryFields {
%queryString = ();
my $tmpStr = $ENV{ "QUERY_STRING" };
foreach $part (@parts)
( $name, $value ) = split( /=/, $part );
}
}

&populateQueryFields;
$lastName = $queryString{ "lname" };

Tagged in:

3182
like
0
dislike
0
mail
flag

You must LOGIN to add comments