Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

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

by AgentM (Curate)
on Oct 10, 2000 at 02:22 UTC ( #36011=categorized answer: print w/replies, xml ) Need Help??

Q&A > CGI programming > How can I pass the URL of the page I am on? - Answer contributed by AgentM

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
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2018-07-19 02:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (398 votes). Check out past polls.

    Notices?