diff options
author | admin <devnull@localhost> | 2006-10-08 09:21:12 +0200 |
---|---|---|
committer | admin <devnull@localhost> | 2006-10-08 09:21:12 +0200 |
commit | 10c3f41cbe5bd3bb66fd106cc9fb171ffcc7364b (patch) | |
tree | 7477d21d33dd07221425685756561c3bbd386217 /user_guide/libraries/input.html | |
parent | 86d4e993d9ea21f28124b80f3d0c161aea681cb6 (diff) |
Diffstat (limited to 'user_guide/libraries/input.html')
-rw-r--r-- | user_guide/libraries/input.html | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/user_guide/libraries/input.html b/user_guide/libraries/input.html index 883c691a3..4e5ac3b7f 100644 --- a/user_guide/libraries/input.html +++ b/user_guide/libraries/input.html @@ -33,7 +33,7 @@ window.onload = function() { <div id="masthead">
<table cellpadding="0" cellspacing="0" border="0" style="width:100%">
<tr>
-<td><h1>Code Igniter User Guide Version 1.5.0</h1></td>
+<td><h1>Code Igniter User Guide Version 1.5.0b1</h1></td>
<td id="breadcrumb_right"><a href="../toc.html">Full Table of Contents</a></td>
</tr>
</table>
@@ -117,9 +117,9 @@ Note: This function should only be used to deal with data upon submission. It's -<h2>Using POST or COOKIE Data</h2>
+<h2>Using POST, COOKIE, or SERVER Data</h2>
-<p>Code Igniter comes with two helper functions that let you fetch POST or COOKIE items. The main advantage of using the provided
+<p>Code Igniter comes with three helper functions that let you fetch POST, COOKIE or SERVER items. The main advantage of using the provided
functions rather then fetching an item directly ($_POST['something']) is that the functions will check to see if the item is set and
return false (boolean) if not. This lets you conveniently use data without having to test whether an item exists first.
In other words, normally you might do something like this:
@@ -138,7 +138,13 @@ else<br /> <code>$something = $this->input->post('something');</code>
-<p>The two functions are:</p>
+<p>The three functions are:</p>
+
+<ul>
+<li>$this->input->post()</li>
+<li>$this->input->cookie()</li>
+<li>$this->input->server()</li>
+</ul>
<h2>$this->input->post()</h2>
@@ -158,6 +164,12 @@ else<br /> <code>$this->input->cookie('some_data', TRUE);</code>
+<h2>$this->input->server()</h2>
+
+<p>This function is identical to the above functions, only it fetches server data:</p>
+
+<code>$this->input->server('some_data');</code>
+
|