bradgrafelman wrote:For the benefit of others who happen upon this thread in the future, would you mind outlining what it is you did to resolve this?
Also, don't forget to mark this thread resolved.
sure no problem i got this working
and i just replace the banned or filtered word in the banned word 1 spot
and the second one in the second spot etc....
$q = $GET[q];
$category_id = $GET[category_id];
$stype = $GET[stype];
$page = $GET[page];
if (empty($q) and empty($category_id)) {
echo "Enter at least 1 keyword, or pick a category.";
}
switch(strtolower($q)){
case "banned word 1": $banned="yes"; break;
case "banned word 2": $banned="yes"; break;
}
if ($banned) {
echo "Im sorry the search phrase you are looking for contains a banned word.";
}
else {
$q = @str_replace("_"," ",$q);
if (empty($page)) {
$page = "1";
$offset = "0";
}