php to filter a text input and echo results