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 Nilesh Dosooye  >  requestUtils  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: example of requestUtils Usage
Class: requestUtils
Retrieve and sanitize user submitted request data
Author: By
Last change:
Date: 9 years ago
Size: 398 bytes
 

Contents

Class file image Download
<?

include_once("requestUtils.class.php");

// userData is an HTML form element 
// instead of using $_REQUEST or $_POST or $_GET['userData']
// we'll use the requestUtils Class to do so

// RequestUtils will sanitize the userData before passing to your application

$sanitizedUserData requestUtils::getRequestObject('userData');

?>

User Data was : <? echo $sanitizedUserData?>