Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: "Action" variables and form data

by athomason (Curate)
on Apr 08, 2001 at 23:07 UTC ( #70866=note: print w/ replies, xml ) Need Help??


in reply to "Action" variables and form data

This is a somewhat obscure feature. Using both GET and POST fields is fairly uncommon, and in those instances you might want to keep the two types apart (e.g. to prevent parameter name conflicts). CGI.pm does this separation for you, even if you don't want it to. If you submit both GET and POST parameters, CGI.pm will make only the POST parameters available through its param function. However, it doesn't throw away the GET params, it just makes you insist that you want them.

To that end, use the url_param function instead of param to fetch the GET values. The two functions work exactly the same way, except you can't set url_params.

See the MIXING POST AND URL PARAMETERS section of the CGI.pm POD for a bit more info.


Comment on Re: "Action" variables and form data
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://70866]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2014-07-30 00:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (229 votes), past polls