For the HTML form, try to use some radios to know if the search is going to be full-word or word-like.
After, in your PHP script check wich one of the radios has been turned on.
The execute your queries like this:
"SELECT * FROM table WHERE field = 'fLIPIS'"
"SELECT * FROM table WHERE field LIKE '%fLIPIS%'"
If you want to search for ANY of the words, you can use some of the str* functions.I don't remember the now, just woke up :-).
Look in http://www.php.net/
That way you cut the blank spaces and store each of the words into an element of an array. After that, you can use any element of the array as criteria for your SQL sentence.
Hope it helps
fLIPIS