in reply to making a difference between POST parameters and URL parameters
if (defined ($q->param('foo')) { print "foo is defined!\n"; print "foo = ", $q->param('foo'), "\n"; }
regardless of the means by which the parameters were generated.
Well formed HTML forms either specify a method of POST _or_ GET, not both. Doing both is supported by CGI, but only because the CGI developers are kind to web developers, not because it's an actual part of the CGI standard. More explicitly, you shouldn't generally care which method is used.
If you can provide more information about your problem and what you're trying to accomplish, other monks might be able to help you solve the real issue, as opposed to processing GET and POST simultaneously
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: making a difference between POST parameters and URL parameters
by moritz (Cardinal) on Feb 14, 2008 at 16:21 UTC | |
|
Re^2: making a difference between POST parameters and URL parameters
by olus (Curate) on Feb 14, 2008 at 16:30 UTC | |
by derby (Abbot) on Feb 14, 2008 at 16:40 UTC | |
by roboticus (Chancellor) on Feb 14, 2008 at 22:03 UTC | |
by gfk (Novice) on Jan 28, 2010 at 14:46 UTC | |
by afoken (Chancellor) on Jan 28, 2010 at 19:24 UTC |