I hope this is a really simple answer... i've searched and searched but obviously I'm not searching for the correct "terms".
I have a basic search page... it allows users to search a database of books by title, author etc. However recently some did a search for the following book title:
"Are you there god? It's me Margaret"
It broke the search engine. Upon investigation, the question mark character is messing up the search. In other words, the search strings from the form are being retrieved on the search results screen using $GET.
I would like to know how to "protect" the info the user puts in the search field and keep it intact to search the database with. I would assume this is also a security issue or how injection attacks are done.
Thanks!