CodeIgniter Forums
POST problems - Printable Version

+- CodeIgniter Forums (
+-- Forum: Archived Discussions (
+--- Forum: Archived Development & Programming (
+--- Thread: POST problems (/thread-26076.html)

POST problems - El Forum - 01-05-2010

I'm confused beyond belief. I don't know why this doesn't work:

Top form doesn't work (done in CI)

copy of top form next on the page does (done in the sandbox outside of CI)

Both go to the same center content and should have the POST contents displayed.

The (relevant lines from the) CI controller:

function test2()

Code to show the post:

echo '<ul>';
foreach ($_POST as $key=>$value)
    echo "<li>$key = $value</li>";
echo '</ul>';

Code to get the value in the page:


The rest of the posts on the site work. Obviously I'm missing something, would appreciate some help.

POST problems - El Forum - 01-08-2010

[eluser]Sean Gates[/eluser]
I'm not sure why you loop the $_POST array, because you should be able to use the $statez variable just fine without it.

So, defaultTwoColumn is the view that has this in it?: