Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Why does CGI.pm's param check GET xor POST?

by wardk (Deacon)
on Apr 05, 2002 at 16:30 UTC ( #156971=note: print w/ replies, xml ) Need Help??


in reply to Why does CGI.pm's param check GET xor POST?

If I understand correctly, it sounds like you are doing:

<form method="post" action="/cgi-bin/myScript?location=value">
and by doing so, you have no access to location parm via:
my $location = param('location');
If this is the case, I would suggest you use a hidden parameter ala:
<form method="post" action="/cgi-bin/myScript"> <input type="hidden" name="location" value="val">
you can then access the location value via the param call.

UPDATE: in re-reading, it appears that you are wanting the form var to appear in the browser location field for a POSTed form. If this is the case, then I am not sure there is a solution


Comment on Re: Why does CGI.pm's param check GET xor POST?
Select or Download Code
Re: Re: Why does CGI.pm's param check GET xor POST?
by elusion (Curate) on Apr 05, 2002 at 16:33 UTC
    I realize that I can access it using a hidden form parameter, but I like to put it in the action value so that it is viewable in the browser. This way when a user bookmarks it, or something like that, it bookmarks that page and not the main page.

    elusion : http://matt.diephouse.com

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2015-07-02 05:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (29 votes), past polls