PHP: Basic input validate and sanitize class

      No Comments on PHP: Basic input validate and sanitize class

Introduction

I’ve written a basic form input validate and sanitize class using the PECL filter system. I needed this class as there will be many forms that needs verification and sanitizing. Its pretty straightforward: if a class member doesn’t return false it returns the validated and sanitized data. You’re free to use this class and change it as you see fit but please be aware of the Gnu Public License.

The code

 

Leave a Reply