[Xapian-discuss] Trying to get omegascript configured to support multiple dbs

Jim Lynch jim at fayettedigital.com
Fri Jan 6 16:40:52 GMT 2006


I made the following changes to the query template.  Hoping that it 
would let me select from a couple of databases.

<INPUT NAME=P VALUE="$html{$query}" SIZE=65>
<INPUT TYPE=SUBMIT VALUE="Search" BORDER=0>
<hr>
<input type="checkbox" name="DB" value="default" 
$if{$eq{$cgi{DB},default},CHECKED} > Default<br>
<input type="checkbox" name="DB" value="tst.db" 
$if{$eq{$cgi{DB},tst.db},CHECKED} > Test<br>
<hr>


Well it does sort of.  Two problems.  It always looks for the default 
even if I've got it unchecked.  The other problem is if I have both of 
them checked, when I return from the query, it resets the test 
checkbox.  I suspect that's because the cgi parameter, DB is a list and 
I don't know how to say "if tst.db is in the DB list, then ...".

Suggestions?

Thanks,
Jim.



More information about the Xapian-discuss mailing list