in reply to Re: Clean URLs and CGI.pm
in thread Clean URLs and CGI.pm
Let's say I'm writing a search script against some database. You can search, you can follow links from the results page to give you more results, you can go to an "advanced search" page and set all sorts of options. So normally, this will be a standard GET or POST setup with multiple values.
However, because I'm a difficult person, I want it to also accept one parameter without a key-value pair (It will know which field this value belongs to). For example, most search engines have many options, but will work just fine with /search.pl?q=search+terms. I don't want the "q=" or whatever though. I want users who are in the know (and HTML writers who want VERY simple links) to have: "search.pl?term"
So I can't just use param(), because I don't know which manner the script is being called by. The code I posted works just fine, I just wanted to make sure I wasn't making some grevious error or missing something obvious.
Did I understand your reply correctly?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Clean URLs and CGI.pm
by Trimbach (Curate) on Jun 11, 2001 at 21:40 UTC | |
by swiftone (Curate) on Jun 11, 2001 at 22:21 UTC | |
by thpfft (Chaplain) on Jun 12, 2001 at 00:25 UTC | |
by swiftone (Curate) on Jun 12, 2001 at 00:50 UTC |