giusto
edit: te la scrivo qui:
bool strpos(string haystack, string needle)
cerca una stringa needle in haystack e ne restituisce la posizione. Se non viene trovata restituisce false.
la usi così:
if(!(strpos($_POST['testo'], "drop table") === false))
{ echo "abbello"; exit; }
però è inutile