CoolBrew User Guide Version 1.3
Based on CodeIgniter Version 1.5.4


Input Module

This module gives you access to the Input class from your website documents. The Input Class provides some helper functions for fetching input data and pre-processing it.

For more information about the methods accessed by these tags, please see the Input Class section of the CodeIgniter User Guide.

<?php get('core.input.post', 'index', $xss_clean); ?>

Returns the value of the supplied index from the $_POST array and runs the value through the XSS filter if $xss_clean is set to TRUE. Returns FALSE if the requested index is not available.

<?php $prod_id = get("core.input.post", 'prod_id', TRUE); ?>

<?php get('core.input.cookie', 'index', $xss_clean); ?>

Returns the value of the supplied index from the $_COOKIE array and runs the value through the XSS filter if $xss_clean is set to TRUE. Returns FALSE if the requested index is not available.

<?php get('core.input.server', 'index', $xss_clean); ?>

Returns the value of the supplied index from the $_SERVER array and runs the value through the XSS filter if $xss_clean is set to TRUE. Returns FALSE if the requested index is not available.

<?php get('core.input.ip_address'); ?>

Returns the IP address for the current user. If the IP address is not valid, the function will return an IP of: 0.0.0.0

<?php get('core.input.user_agent'); ?>

Returns the user agent (web browser) being used by the current user. Returns FALSE if it's not available.