in reply to GET variables overwriting POST variables

When you make POST request, CGI::param() uses the POST parameters and ignores the URL. When you make a GET request – as you did – (or HEAD, etc), it uses the URL parameters. Most of the time, this is just fine and is what you want.

This means that if you do need to know where CGI::param() got its values from, you can check CGI::request_method() to find out.

Makeshifts last the longest.

  • Comment on Re: GET variables overwriting POST variables