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
<FORM method="GET" action="search_results.shtml"> <input type="text" name="query"> <input type="submit"> </form>
search_results.shtml
<html> <head></head> <body> <!--#include virtual="/includes/header.htm" --> <!--#include virtual="/cgi-bin/search_script.pl" --> <!--#include virtual="/includes/footer.htm" --> </html>
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.
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |