in reply to Detecting a post via cgi
1. `perldoc CGI`
2. See if $ENV{QUERY_STRING} is defined or ne "".
3.
UPDATE:
5. And if you really want to know which method of parameter passing was used...see fireartist's post above that reads, "my $method = $q->request_method();"
2. See if $ENV{QUERY_STRING} is defined or ne "".
3.
4. If you are going to use the CGI parameters for anything...do not manually parse the QUERY_STRING. I put that option (#2 above) JIC you only want to know, "Was this script loaded from a Post/Get?"use CGI; use strict; my $cgi = new CGI; my $param1 = ""; $param1 = $cgi->param('textboxonform'); if ($param1 ne "") { #There was data passed from Post/Get }
UPDATE:
5. And if you really want to know which method of parameter passing was used...see fireartist's post above that reads, "my $method = $q->request_method();"
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Detecting a post via cgi
by Ovid (Cardinal) on May 28, 2003 at 15:08 UTC | |
by cbro (Pilgrim) on May 28, 2003 at 15:15 UTC | |
by Ovid (Cardinal) on May 28, 2003 at 15:23 UTC | |
by cbro (Pilgrim) on May 28, 2003 at 15:27 UTC | |
Re: Re: Detecting a post via cgi
by jcpunk (Friar) on May 28, 2003 at 15:11 UTC | |
by cbro (Pilgrim) on May 28, 2003 at 15:17 UTC |
In Section
Seekers of Perl Wisdom