<PRE>
well, a cool way i found to do it is to create an array of things you're checking for. a switch is much nicer for only a few things, but this is cleaner for a lot. An example:
$input = "your input";
$desired_results = array('a','b','c');
$i = 0;
while(!$found && $i<count($desired_results)) {
if($input == $desired_results[$i]) {
echo "STUFF";
$found = true;
} else {
$i++;
}
}
if(!$found)
echo "Your query was not found";
</PRE>