Login   Register  
PHP Classes
elePHPant
Icontem

Form Data Cleaner: Sanitise GET and POST values based on type rules

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (1)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2007-04-13 (7 years ago) RSS 2.0 feedStarStarStar 49%Total: 1,703 This week: 1All time: 2,116 This week: 1,521Up
Version License Categories  
requestcleaner 1.0.0Free for non-commercial...HTTP, Data types, Security
Description Author  

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.

Picture of Gabriel Harrison
Name: Gabriel Harrison <contact>
Classes: 1 package by
Country: United Kingdom United Kingdom
Age: 36
All time rank: 152966 in United Kingdom United Kingdom
Week rank: 1150 Up48 in United Kingdom United Kingdom Up

  Files folder image Files  
File Role Description
Accessible without login Plain text file requestcleaner.php Class Commented class source

 Version Control Unique User Downloads Download Rankings  
 0%Total:1,703All time:2,116
 This week:1This week:1,521Up
 User Ratings  
 
 All time
Utility:83%StarStarStarStarStar
Consistency:83%StarStarStarStarStar
Documentation:-
Examples:-
Tests:-
Videos:-
Overall:49%StarStarStar
Rank:1610