I have a linux dev server and I’m trying to setup a sandbox environment under windows 7. Things were going along swimmingly until I run into an issue where I can’t seem to find $_POST data from my CI_Controller sub-classes.
I’m assuming there’s got to be some sort of configuration issue here but neither Google nor IRC have yielded a solution. Here are some minimized examples illustrating my problem.
This (PHP only) works under both linux and windows:
<HTML>
<HEAD><TITLE>Hello, world!</TITLE></HEAD>
<BODY>
<FORM method="post">
<input type="text" name="test" id="test" />
<input type="submit" />
</FORM>
<br/><pre><? print_r( $_POST ); ?></pre>
</BODY></HTML>
This works under linux but on my local the dump of $_POST always shows as Array( )
<?php
class Hello3 extends CI_Controller {
public function index()
{
//echo 'Hello World!';
echo '<HTML>
<HEAD><TITLE>Hello, world!</TITLE></HEAD>
<BODY>
<FORM method="post">
<input type="text" name="test" id="test" />
<input type="submit" />
</FORM><br/><pre>';
print_r( $_POST );
echo '</pre></BODY></HTML>';
}
}
?>
Thanks in advance for the kind and gentle way in which you have chosen to show me what a fool I am.
