Hi,
> > You can pass a parameter to htsearch that specifies the config file to use.
> > Using this you can have a config file, database, and wrapper.html files for
> > each virtiual server.
>
> How ? htdig is running by now, the only missing link is the parameter. I
> can pass it on the shell ('./htsearch -v -c ../htdig/htdig.conf') and
> htsearch prompts me for a keyword and outputs an html-formatted results
> list. But I have no idea how to pass it via the web-browser, I tried
> 'action="/cgi-bin/htsearch -c ../htdig/htdig.conf"' in search.html,
> doesn't work, pretty foolish I guess. I checked out your site, you don't
> pass the parameter that way...
In the HTML Form that you use for launching htsearch you can place a
hidden input tag with the name 'config' like the code snippet below:
------------------- HTML ---------------------
<FORM METHOD="post" ACTION="/cgi-bin/htsearch">
<TABLE>
<TR>
<TD WIDTH="96"> <FONT SIZE="-1">Search for:</FONT></TD>
<TD COLSPAN="4"> <INPUT TYPE="text" SIZE="40" NAME="words"
VALUE=""> <INPUT TYPE="submit" VALUE="Search"></TD>
</TR>
</TABLE>
<INPUT TYPE="hidden" NAME="method" VALUE="and">
<INPUT TYPE="hidden" NAME="format" VALUE="builtin-long">
<INPUT TYPE="hidden" NAME="restrict" VALUE="">
<INPUT TYPE="hidden" NAME="exclude" VALUE="">
<INPUT TYPE="hidden" NAME="config" VALUE="manpages">
</FORM>
---------------- /HTML -----------------------
See: http://www.htdig.org/htsearch.html for more information about the
parameters htsearch can accept.
---
Anthony Peacock
CHIME, Royal Free & University College Medical School
WWW: http://www.chime.ucl.ac.uk/~rmhiajp/
"Some days it is just not worth gnawing through the restraints."
------------------------------------
To unsubscribe from the htdig mailing list, send a message to
[EMAIL PROTECTED]
You will receive a message to confirm this.
List archives: <http://www.htdig.org/mail/menu.html>
FAQ: <http://www.htdig.org/FAQ.html>