PHP Classes / Form Data Cleaner

Sanitize GET and POST values based on type rules

Form Data Cleaner PHP Class

This class can be used to sanitize GET and POST values based on expected data type rules. It takes a list of GET and POST request parameters that it should analyze and the respective data types that it expects. Currently it supports the types: integer, double, string, boolean and array. String values may be escaped for use in MySQL queries or display in HTML pages without further encoding by the application. Any request values that are not listed may either removed or be subject to default processing.

Search in PHP Classes

Filter by tags