No such thing as a small change | |
PerlMonks |
Re: Detecting a post via cgiby cbro (Pilgrim) |
on May 28, 2003 at 14:44 UTC ( [id://261316]=note: print w/replies, xml ) | Need Help?? |
1. `perldoc CGI` 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?" 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();"
In Section
Seekers of Perl Wisdom
|
|