Eric,
Basically, you want to make a link to a cgi program (in this case ht://dig)
and pass it the same variables that an HTML page would pass it.
The syntax would be (if the .cgi resided in the cgi-bin for someserver:
<A
HREF="http://www.somewhere.com/cgi-bin/somecgi.cgi?name=value&name=value&name=va
lue">Click here to search</A>
Here's a link that would link to my Web site and locate any document with
the words "teacher" and "framework" and display the results using the
builtin-short format.
<A
HREF="http://www.sedl.org/cgi-bin/htsearch?words=teacher+&framework=and&format=b
uiltin-short">Click here to search</A>
The link works, try it!
Note that when one of your form values has a blank in it (e.g. I searched
for "teacher" and "framework" above, which normally would be passed to a
cgi with a single text box in an HTML form) you use a plus sign to indicate
the space.
Brian
Southwest Educational Development Laboratory
>Can someone tell me how to submit a query without an html-based form? I
>want to have several links on a webpage that will each take the user
>to different ht:\\Dig search-result pages. Example:
>
>If the user clicks on <link one> they get ht://dig results for a "query
>one." If they click on <link two> they get ht://dig results for "query
>two," etc.
>
>In other words, I want to assign an ht://Dig search query to an html link
>that will return ht://Dig search results as the linked page.
>
>If you know a way to do this, I would really appreciate it if you can let
>me know. Thanks in advance!
>
> Eric
>
>--
>Eric Luhrs, NBCS, Rutgers University, Hill Center.
>MAIL: [EMAIL PROTECTED] VOICE: 732.445.2464
>
>
>
>
>----------------------------------------------------------------------
>To unsubscribe from the htdig mailing list, send a message to
>[EMAIL PROTECTED] containing the single word "unsubscribe" in
>the body of the message.
----------------------------------------------------------------------
To unsubscribe from the htdig mailing list, send a message to
[EMAIL PROTECTED] containing the single word "unsubscribe" in
the body of the message.