$query = "SELECT fieldname FROM databaseName WHERE formFieldName LIKE '$formVariable%'";
Notice the % sign
That is the wildcard where it will match deer with deer park etc
If you really want to fancy you can start doing pattern matching and stuff but that's another story