<p>CodeIgniter allows access to POSTed data via:</p>

<pre><code>$this-&gt;input-&gt;post('input_name');
</code></pre>

<p>where 'input_name' is the name of a form field. This works well for a static form where each input name in known ahead of time.</p>

<p>In my case, I am loading a collection of key/value pairs from the database. The form contains a text input for each key/value pair.</p>

<p>I am wondering, <strong>is there a way to get an array of posted data via the CodeIgniter api?</strong></p>

<p>Thanks!</p>

According to the documentation, no. I would suggest just using
```
array_keys($_POST)
```
to get the keys.