Im writing a "commenting" system for a website that current has a small selection of videos on it. The problem im having is stripping special charectors out of text that is posted to stop SQL injections.
I have managed to strip out non alpha-numberic charectors and keep spaces, but i want line returns, commas, full stops, questions marks et cetera too.
How can this be done using the "ereg_replace()" funtion?
Thank you, you wonderful people you!
I have managed to strip out non alpha-numberic charectors and keep spaces, but i want line returns, commas, full stops, questions marks et cetera too.
How can this be done using the "ereg_replace()" funtion?
Thank you, you wonderful people you!