PHP Classes
Icontem

File: example.php


  Search   All class groups All class groups   Latest entries Latest entries   Top 10 charts Top 10 charts   Newsletter Newsletter   Blog Blog   Forums Forums   Help FAQ Help FAQ  
  Login   Register  
Recommend this page to a friend! ReTweet ReTweet Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Andrey Nikishaev  >  Filter  >  example.php  
File: example.php
Role: Example script
Content type: text/plain
Description: example
Class: Filter
Filter request input data
 

Contents

Class file image Download
<?php
include_once('filter_class.php');

Filter::addData(array('GET','POST','COOKIE'));
echo 
Filter::post('phone_var');//get from $_POST filtered by "phone" value of phone_var
echo Filter::get('int_var'); //get from $_GET filtered by "int" value of int_var

/*
How this works:

you send value by post, get or cookie to the server
value name must be in format filterRule_valueName;

after filtration you can get you var by this method
Filter::SendMethod(post,request,get or cookie)('filterRule_valueName');
if var was accepted by filter it return it's value else false.
*/

 
  Advertise on this site Advertise on this site   Site map Site map   Statistics Statistics   Site tips Site tips   Privacy policy Privacy policy   Contact Contact  

For more information send a message to :
info at phpclasses dot org.
Copyright (c) Icontem 1999-2009 PHP Classes - PHP Class Scripts
  PHP Book Reviews - Reviews of books and other products