PHP Classes

File: example.php

Recommend this page to a friend!
  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: 18 years ago
Size: 398 bytes


Class file image Download


// 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; ?>