John Cox has a post today about a PHP Input Filter project that seeks to help users filter incoming user data.
"PHP Input Filter - 1.2.2 ..is a free php class that allows developers to easily filter input coming from the user (HTML forms, cookies etc) for a number of reasons. The focus of this tool is on customization. v1.2.2 features SQL injection support, PHP5 Strict version, as well as several patches and bug fixes. Thanks to everyone who's emailed in to make this much more stable and well-rounded."
PHP Input Filter appears to be a simple but effective class.
Of course, he states, something like this input filter can be used easily as a start to the filtering, but shouldn't be relied upon to take care of every user input issue - espcially considering there are XSS exploits and SQL injections out there...




