Think about Loose Coupling | |
PerlMonks |
Extract form fields & values from query string of http_referrerby punch_card_don (Curate) |
on Oct 18, 2006 at 04:44 UTC ( [id://578969]=perlquestion: print w/replies, xml ) | Need Help?? |
punch_card_don has asked for the wisdom of the Perl Monks concerning the following question:
Mindful Monks,
I have a standard HTML form for search engine input on a regular HTML page. The form action is set to use GET and to call not a Perl script, but an SHTML page with an embedded SSI-call to a Perl script, like this: Search Page
search_results.shtml
The idea was that the full url of search_results.shtml, being called from a form using GET, will have the search terms tacked on the end as a query substring. So, we'd have search_script.pl read $ENV{HTTP_REFERER}, which is search_Results.pl, and strip the substring off to get the origial search terms. It would be nice to have cgi-pm do this stripping and formatting, but I don't konw how to get it to do that. Of course, any smarter way of doing this is welcome too.
Thanks.
Forget that fear of gravity, Get a little savagery in your life.
Back to
Seekers of Perl Wisdom
|
|