From ff1cfa1ae5c5440bfde35c36ecb4cdcd73cd3966 Mon Sep 17 00:00:00 2001 From: vascopj Date: Sun, 13 Feb 2011 21:30:19 +0000 Subject: Updated the post method and added the new functionality to the get method also Updated the documentation --- user_guide/libraries/input.html | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'user_guide/libraries/input.html') diff --git a/user_guide/libraries/input.html b/user_guide/libraries/input.html index 552c49afd..4faecd768 100644 --- a/user_guide/libraries/input.html +++ b/user_guide/libraries/input.html @@ -132,12 +132,32 @@ else
$this->input->post('some_data', TRUE); +

To return an array of all POST items call without any parameters.

+

To return all POST items and pass them through the XSS filter leave the first parameter blank while setting the second parameter to boolean;

+

The function returns FALSE (boolean) if there are no items in the POST.

+ + + $this->input->post(); // returns all POST items with XSS filter +
+ $this->input->post('', FALSE); // returns all POST items without XSS +
+

$this->input->get()

This function is identical to the post function, only it fetches get data:

$this->input->get('some_data', TRUE); +

To return an array of all GET items call without any parameters.

+

To return all GET items and pass them through the XSS filter leave the first parameter blank while setting the second parameter to boolean;

+

The function returns FALSE (boolean) if there are no items in the GET.

+ + + $this->input->get(); // returns all GET items with XSS filter +
+ $this->input->get('', FALSE); // returns all GET items without XSS filtering +
+

$this->input->get_post()

This function will search through both the post and get streams for data, looking first in post, and then in get:

-- cgit v1.2.3-24-g4f1b