Input::get (method)

Last updated: Tue, Oct 31, 2023 11:49 am
Return to Knowledgebase

Purpose

Gets and sanitizes form input for form processing.

Location

users/classes/Input.php

See Also:

Input::sanitize (method)

Parameters

# Parameter Data Type Required Description
1 $item Yes undocumented

Example

Input::get('username')

Further Documentation:

Sanitizing your form input is critical to database security. Do not simply pass $_GET or $_POST data into your database. This method properly escapes the strings.

$username = Input::get('username');

Please note that your data may require other types of security checks before storing into the database, but this method handles the basics.