DATA Methods

request()

Return XSS sanitized $_GET and $_POST data. The data returned will be encoded, run decode() if required.

mixed request( string type [, string value = false ])

Return

Function usually returns string type values unless data requires array (checkboxes, multiple select boxes).

Parameter
Description
type"GET": request $_GET values
"POST": request $_POST values
valueName of the value to be fetched. If left empty ALL values of its type will be returned.

Click HERE to test function...

$DATA->request("GET", "test")
RETURN: NULL

... and compare to this function, which will return URL encoded value

$NAVI->query("test")
RETURN: ''

Return all values

$DATA->request("GET")
RETURN: ARRAY [0]