what is Perl equivalent of php $_POST and how to use it?
- by dexter
i have two perl files that is .pl files
one is action.pl and another one is test.pl
action.pl has a html form as:
print $cgi->header, <<html;
<form action="test.pl" method="post">
html
while (my @row = $sth->fetchrow)
{
print $cgi->header, <<html;
ID:<input name="pid" value="@row[0]" readonly="true"/><br/>
Name: <input name="pname" value="@row[1]"/><br/>
Description : <input name="pdescription" value="@row[2]"/><br/>
Unit Price :<input name="punitprice" value="@row[3]"/><br/>
html
}
print $cgi->header, <<html
<input type="submit" value="update Row">
</form>
html
now, my question is what should i wright in test.pl so as to read what form is sending it??
in Other words what is Perl equivalent of PHP: $_POST['pid']
so that in test'pl we can read the data sent via form