I want a way to validate forum inputs. For example, the same form used on this site to post new threads. You have a button to enter a link, another to add email and another to add flash movie or image. Is there like a validation function to validate the inputs. (I am mostly conerned about cross site scripting and SQL Injection)