Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi All, I was wondering if any of you know why my CGI.pm is only retrieving GET values and not values from POST.
use strict; use warnings; use CGI; my $cgi = CGI->new; my $opt = $cgi->param('action'); print $cgi->header; print $opt; print "wtf";
I put the above code inside a file called main.pl. My form:
<form action="main.pl" method="POST"/> <input type="hidden" name="action" value="PLEASE" /> <input type="submit" name="submit" value="Submit" /> </form>
So when accessing the form and submitting, it only prints "wtf". When going directly to main.pl?action=PLEASE, it will display, "wtfPPLEASE". I have the latest CGI 3.62 installed and verified on ActiveState PPM. This is on IIS on Win11SBS. The Perl installation and configuration seems to be smooth. I added the correct Handler Mapping, etc. It's also a 64 bit, but I have the 32bit enable option to true. I did a simple "Hello World" script to test after installing and configuring Perl on IIS 7. Anyone have any ideas why the POST method does not work? It's driving me insane...will appreciate any suggestions or ideas. THANK YOU!!!!!~!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CGI.pm POST method does not work
by Anonymous Monk on Mar 07, 2013 at 09:26 UTC | |
|
Re: CGI.pm POST method does not work
by jms53 (Monk) on Mar 07, 2013 at 06:07 UTC | |
|
Re: CGI.pm POST method does not work
by Anonymous Monk on Mar 08, 2013 at 01:22 UTC | |
by Anonymous Monk on Mar 08, 2013 at 02:48 UTC |