johno dread - 2010-04-16 14:59:54
Hello,
There are hundreds of solutions to clean up your inputs but I need to clean input on submit. Here is the problem:
<form> <textarea><script type='text/javascript'> alert(document.cookie); </script> </textarea> <input type='submit' value='submit'/></form>
How do I prevent the javascript from executing on submit? otherwise cleaning the string is not longer important.