summaryrefslogtreecommitdiffstats
path: root/user_guide/libraries
diff options
context:
space:
mode:
authorvascopj <devnull@localhost>2011-02-13 22:30:19 +0100
committervascopj <devnull@localhost>2011-02-13 22:30:19 +0100
commitff1cfa1ae5c5440bfde35c36ecb4cdcd73cd3966 (patch)
treeb45900e1bdf43a0159c54237c92a51ccc3a2a77a /user_guide/libraries
parent0ba58b81b65c2059210b921856489b5faaa81369 (diff)
Updated the post method and added the new functionality to the get method also
Updated the documentation
Diffstat (limited to 'user_guide/libraries')
-rw-r--r--user_guide/libraries/input.html20
1 files changed, 20 insertions, 0 deletions
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<br />
<code>$this->input->post('some_data', TRUE);</code>
+<p>To return an array of all POST items call without any parameters.</p>
+<p>To return all POST items and pass them through the XSS filter leave the first parameter blank while setting the second parameter to boolean;</p>
+<p>The function returns FALSE (boolean) if there are no items in the POST.</p>
+
+<code>
+ $this->input->post(); // returns all POST items with XSS filter
+ <br />
+ $this->input->post('', FALSE); // returns all POST items without XSS
+</code>
+
<h2>$this->input->get()</h2>
<p>This function is identical to the post function, only it fetches get data:</p>
<code>$this->input->get('some_data', TRUE);</code>
+<p>To return an array of all GET items call without any parameters.</p>
+<p>To return all GET items and pass them through the XSS filter leave the first parameter blank while setting the second parameter to boolean;</p>
+<p>The function returns FALSE (boolean) if there are no items in the GET.</p>
+
+<code>
+ $this->input->get(); // returns all GET items with XSS filter
+ <br />
+ $this->input->get('', FALSE); // returns all GET items without XSS filtering
+</code>
+
<h2>$this->input->get_post()</h2>
<p>This function will search through both the post and get streams for data, looking first in post, and then in get:</p>