I have the following controller file:
<?php
class Test extends CI_Controller
{
function __construct()
{
parent::__construct();
}
function index()
{
print_r($_POST);
$view_params = array();
$this->load->view('test', $view_params);
}
}
?>
with a view file of:
<form action="/test" method="post">
<input type="text" name="test" />
<input type="submit" />
</form>
<ul id="account">
<li class="separator url"><label>Domain Address (URL)</label><input maxlength="22" type="text" name="sub_url" />
<small class="subtext">This is the link people use to find your site. You can change this at any time.</small>
</li>
</ul>
<img class="green_arrow" src="assets/images/green_arrow.png" />
When I hit the submit button, no post data is being spit out, but when I do a page refresh, it says data has been posted and will resend it.
Also, I think that html is just a snippet, but please understand that I am trying to reduce code and therefore reduce the number of problem areas. The reason where there is so much garbage after that is because if I remove that the view file ceases to work, but that's another question.