I am in the middle of designing my own message system and have ran into an issue. Users are able to inject code into their messages, which is executed next time the page is loaded.
Is there a way to strip all non alpha-numeric characters from a form before it gets sent to $_POST using ether JavaScript or PHP ?
The server I am on does NOT have jquery , node.js or AJAX support.