But it really isn't the result of an ISINDEX. (I think). Here's an example:

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?


In reply to Re: Re: Clean URLs and CGI.pm by swiftone
in thread Clean URLs and CGI.pm by swiftone

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.