Input::sanitize (method)

Purpose:

Sanitizes non form data for storage in the database

See Also:

Input::get (method)

Example:

Input::sanitize('aRandomStringOfData')

Data Type(s):

Input::sanitize(string)

Location:

users/classes/Input.php

Details:

Sanitizing your form input is critical to security.  Do not simply pass
$_GET or $_POST into your database.  This method properly escapes
the strings and is generally used when your data comes from some
user input other than a form.

<?php $data Input::sanitize('aRandomStringOfData'); ?>
Please note that your data may require other types of security
checks before storing into the database, but this method handles the
basics.