I am using post method in html to pass the parameters and values to cgi file. From that cgi file I'm extracting the values and parameters. I have tried the code below,
HTML:
<form action="http://hostname.com/manipulation.cgi?name5=value5&name6=value6&name7=value7&name8=value8" method="POST"> </form>
CGI: manipulation.cgi
use strict;
use CGI;
my $query ->new CGI;
print $query->header();
my @paramNames = $query->param; #Receive N number of parameters
my @paramValues = map $query->param($_), $query->param; #Receive N number of parameters values
print $query->h4("@paramNames,@paramValues");
But I'm not able to get the expected output.
Please help me on this.
Thanks in advance.
my $query ->new CGI- this doesn't look right. I hope you meanmy $query = CGI->new. If you don't cut and paste your exact code then it's harder for us to help you.