javascript and php
I use a javascript that verifies each or as many of the form elements I want.
It does it by checking the form text box when it looses focus and checks the text against a list of banned words terms. It was originaly written to stop any swearies being used but stops code too. It pops up a warning if it finds any and takes the user back to the box they've just filled so the user will know you're preventing any shennanigans. If they sneak something past I haven't accounted for then a php cleaner could double check before pocessing. Remember PHP has a built in stripHTML command that you could use if you want to stop them posting tags.
|