what is Perl equivalent of php $_POST and how to use it?
Posted
by dexter
on Stack Overflow
See other posts from Stack Overflow
or by dexter
Published on 2010-03-31T09:49:21Z
Indexed on
2010/03/31
9:53 UTC
Read the original article
Hit count: 236
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
© Stack Overflow or respective owner