[eluser]Unknown[/eluser]
Hi, i am having a problem with code igniter 2.0.2, I am trying to read from $this->input->post() however it always seemed to return false, so I done some further looking into this...
I created a simple controller and put some test code in it
Code:
public function test()
{
error_reporting(E_ALL & ~ E_NOTICE);
var_dump($_POST);
var_dump($this->input->post());
$this->output->enable_profiler(TRUE);
?>
<meta charset="utf-8">
<form id="login-form" class="block-content form" action="/login/test" method="post">
<input type="text" name="username" id="username">
<input type="submit" class="button" value="Login">
</form>
<?php
}
Even this simple form never sends the data, the array is always empty, so I then copied that code into a standalone php file and it worked fine, the post array is present and contains 'username'.
I have searched Google, and found nothing that relates to my problem:
- My post_max_size = 8M
- I tried adding enctype="text/plain", this done nothing.
Any help would be greatly appreciated!
- Matt