Is there a code that checks a variable to see if there is a certain word(s) in it. I dont really know how to explain it.
yes
What is that code.
oh you want to know how, all you asked was if it's possible, anyway
http://www.php.net/ereg http://www.php.net/eregi http://www.php.net/strstr http://www.php.net/stristr http://www.php.net/preg
Don't forget strpos() and stripos()
There's lots of different ways to do this.