Hey, I want to hear input as to how you all check your form inputs before passing them along to the rest of the script. As I use them, there are about three different types of filters I may have to apply to the inputs. If I am passing the input to SQL, check for special tSQL characters, likewise if I am running an 'exec' off them, and the third being checking for special HTML characters that I imagine my PHP script would convert and then pass along.
I always check for ;'s and if I am running an exec I check for '&&' and '||' as well. Of course I check string length as well.
For SQL statements, usually just making sure that my sql is written correctly seems to do the trick (enclosing all variables with ' ') and html is smart enough to add in the preceeding \'s so special characters are just treated as text.
So, how do you validate your form code, am I missing any characters? What are the, if any, HTML codes for ; && || (like %20 = space)???