The latest wrapper at http://diary.unixathome.org/htdig/results.php.txt is 
much reduced in code size thanks to an offline suggestion to use 
templates.  The result is a wrapper which is much easier to use and will 
be easier for htdig users to customize.  I'll package everything up this 
weekend and put it somewhere for people to view/test/play.

The one design problem I have now is duplication of code.  The search 
form is found both in results.php and one of the templates.  I'd like to 
have it in one location only.  The template code looks likes look this:

<form method="post" action="$(CGI)">
<font size="-1">
Match: $(METHOD)
Format: $(FORMAT)
Sort by: $(SORT)
</font>
<input type="hidden" name="config"   value="htdig">
<input type="hidden" name="restrict" value="">
<input type="hidden" name="exclude"  value="">
<input type="hidden" name="submit"   value="">
<br>
Search:
<input type="text" size="30" name="words" value="$(WORDS)">
&nbsp;<input type="submit" value="Search">
</form>

I can't include the above directly into a php script as the variables will 
not be expanded.

If anyone has some clues about this, I'd love to hear them.

-- 
Dan Langille
pgpkey - finger [EMAIL PROTECTED] | http://unixathome.org/finger.php

_______________________________________________
htdig-general mailing list <[EMAIL PROTECTED]>
To unsubscribe, send a message to <[EMAIL PROTECTED]> with a 
subject of unsubscribe
FAQ: http://htdig.sourceforge.net/FAQ.html

Reply via email to