According to Jon Oransky:
> what if i wanted to have a banner based on the search term on the results
> page.  i'd make the img src call a perl script, but how do i get the search
> term? i'd add the banner to the header.html file.  i guess i could make the
> perl script look at the /var/log/htdig file's last line or something, is
> there an easier way?  is the url like htsearch?keyword or something then i
> could strip out the keyword from the url.

Use the WORDS template variable.  E.g.:

   <img src="/path/to/perl/script.pl?words=$%(WORDS)">

The "%" will cause htsearch to hex-encode any reserved characters in
the search words, as appropriate for use in a URL as above.

-- 
Gilles R. Detillieux              E-mail: <[EMAIL PROTECTED]>
Spinal Cord Research Centre       WWW:    http://www.scrc.umanitoba.ca/
Dept. Physiology, U. of Manitoba  Winnipeg, MB  R3E 3J7  (Canada)


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
ht://Dig general mailing list: <[EMAIL PROTECTED]>
ht://Dig FAQ: http://htdig.sourceforge.net/FAQ.html
List information (subscribe/unsubscribe, etc.)
https://lists.sourceforge.net/lists/listinfo/htdig-general

Reply via email to