Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: How can I pass the URL of the page I am on?

by AgentM (Curate)
on Oct 10, 2000 at 02:22 UTC ( [id://36011]=note: print w/replies, xml ) Need Help??


in reply to How can I pass the URL of the page I am on?

Assuming you wish to pass the URL from a CGI script to the next page:
use CGI; ... $query->hidden('URL',$query->self_url); ...
Assuming you wish to pass the URL from the web page to the CGI.
  1. on your page create a hidden field that contains the pertinent information
  2. use the param() function in CGI to retrieve the variable and voila!
In the future, please be more specific in your question and post them to Seekers of Perl Wisdom instead.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-04-19 13:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found