Articles: 843 | Categories: 148   
   
   
Home Articles Contact Us
 
 
 
 
Form Data Cleaner (0 Comments)
Admin: Posted Date: April 4, 2010

This class can be used to sanitise GET and POST values based on expected data type rules. It takes a list of GET and POST request parameters that it should analyse and the respective data types that it expects.

Class: Form Data Cleaner

Detailed description

This class can be used to sanitise GET and POST values based on expected data type rules.

It takes a list of GET and POST request parameters that it should analyse 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.

Missing or invalid values may be overwritten with default values.

Any request values that are not listed may either be removed or subject to default processing.

 

 

 
 
Add a Comment:
 
(You must be signed in to comment on an article. Not a member? Click here to register)
   
Title:

Comments: