Correct... when I do a search it looks for ANY word. I want it to look for ALL words. Example:
A search for "Apples Oranges" will list results for all pages containing at least ONE of those words. I want my search panel to show results for pages which only contain BOTH words.
UPDATE: I figured out how to get what I wanted.
include LOCALE.LOCALESET."search.php";
openside("Distro Hub Search");
echo "<center><form id='searchform' name='searchform' method='get' action='".BASEDIR."search.php'>\n";
echo "<center><input type='text' name='stext' value='".urldecode($_GET['stext'])."' class='textbox' style='width:500px' />\n";
echo "<center><label><input type='hidden' name='method' value='AND'".($_GET['method'] == "articles" ? " checked='checked'" : "")." onclick=\"display(this.value)\" /></label><br>\n";
echo "<label><input type='hidden' name='stype' value='articles'".($_GET['stype'] == "articles" ? " checked='checked'" : "")." onclick=\"display(this.value)\" /></label><br>\n";
echo "<center><input type='submit' name='search' value='Search' class='button' /> <input type='reset' name='reset' value='Reset' class='button' />\n</form>\n";
closeside();
?>
Originally I added these lines:
echo "<label><input type='radio' name='method' value='OR'".($_GET['method'] == "OR" ? " checked='checked'" : "")." /> ".$locale['403']."</label><br />\n";
echo "<label><input type='radio' name='method' value='AND'".($_GET['method'] == "AND" ? " checked='checked'" : "")." /> ".$locale['404']."</label></td>\n";
but they messed up my panel appearance. The first set of code is working to my satisfaction so I am a happy camper.