Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of nirmit  >  User Input Sanitation  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: This is a working example of the class
Class: User Input Sanitation
Escape values of request variables
Author: By
Last change:
Date: 7 years ago
Size: 479 bytes
 

Contents

Class file image Download
<?php
$_POST 
= array('name'=>"Nirmit's"'value'=>"Sanitation Class");
$_GET = array('URLValue'=>"testin'");
$_REQUEST = array('requestValue'=>'Test"');
$_COOKIE = array('password'=>"'nirmit'spassword");

require 
'class.sanitize.php';

echo 
'<pre>';
echo 
'POST Variables : <br>';
print_r($_POST);
echo 
'<hr>GET Variables : <br>';
print_r($_GET);
echo 
'<hr>REQUEST Variables : <br>';
print_r($_REQUEST);
echo 
'<hr>COOKIE Variables : <br>';
print_r($_COOKIE);

?>