Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2018-10-16 05:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When I need money for a bigger acquisition, I usually ...














    Results (83 votes). Check out past polls.

    Notices?