Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Extract form fields & values from query string of http_referrer

by Leviathan (Scribe)
on Oct 18, 2006 at 07:26 UTC ( [id://578982]=note: print w/replies, xml ) Need Help??


in reply to Extract form fields & values from query string of http_referrer

You can initialize CGI.pm with the query you want, like this:

my $query = (split /\?/, $ENV{HTTP_REFERER}, 2)[1]; my $q = new CGI($query); ...

But you cannot always rely on HTTP_REFERER to be set, so why not post the query directly the the perl script?

--
Leviathan.
  • Comment on Re: Extract form fields & values from query string of http_referrer
  • Download Code

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2024-03-30 03:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found