I have a little dilemma. What could the difference be between preg_match() and htmlspecailchats() when using either one of them checking for html's INPUT in the browser. I find that it is easier to use preg_match() rather than htmlspecialchars() when eliminating slashes, quotes etc. Can someone give me some info on whether I am right or not.
Thanks.