My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
InstallationUse  
Installation and Use
Featured
Updated Aug 24, 2010 by interest...@gmail.com

Installation

processInput is simple to install. Simply upload the script to the library or resource folder of your PHP-based web site.

Usage

ProcessInput is a fairly simple library to implement. There are only two steps, first, creating an array of expected input, which processInput will convert into variables, then calling the processInput script to do the heavy work.

So, the first step is to create an array called "expected". Each item in the array is a single piece of input that needs to be validated. For example, suppose you have a script that takes a single piece of user data, an e-mail address. You would create an array called expected, then pass it the name of the variable you want to create.

The final step is to include the library into the PHP script, by requiring it:

require_once('relative/locationof/processinput.1.0.php');

This will call the script and cause it to process the array of expected input, validating each input and creating appropriate variables.


Sign in to add a comment
Powered by Google Project Hosting