Welcome Guest, Not a member yet? Register   Sign In
$_POST issue - has to be my conf, right?
#1

[eluser]mplsCorwin[/eluser]
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:
Code:
<HTML>
<HEAD><TITLE>Hello, world!</TITLE></HEAD>
<BODY>
<FORM method="post">
<input type="text" name="test" id="test" />
<input type="submit" />
</FORM>
   <br/><pre>&lt;? print_r( $_POST ); ?&gt;</pre>
&lt;/BODY&gt;&lt;/HTML>

This works under linux but on my local the dump of $_POST always shows as Array( )
Code:
&lt;?php
class Hello3 extends CI_Controller {

public function index()
{
   //echo 'Hello World!';
  echo '&lt;HTML&gt;
&lt;HEAD&gt;&lt;TITLE>Hello, world!&lt;/TITLE&gt;&lt;/HEAD>
&lt;BODY&gt;
&lt;FORM method="post"&gt;
&lt;input type="text" name="test" id="test" /&gt;
&lt;input type="submit" /&gt;
&lt;/FORM&gt;&lt;br/><pre>';

  print_r( $_POST );
  echo '</pre>&lt;/BODY&gt;&lt;/HTML>';
}
}
?&gt;

Thanks in advance for the kind and gentle way in which you have chosen to show me what a fool I am.
#2

[eluser]mplsCorwin[/eluser]
Dang it - I thought I was posting this into a different forum. I will be removing this from the "General Discussions" forum directly.


Edit: Turns out I can't delete this, nor move it. Again, very sorry to have put this into the wrong place. New post was made over here: http://ellislab.com/forums/viewthread/219757/ (Help, is this a bug?). Here's hoping an admin will happen along and nuke this thread. :red:




Theme © iAndrew 2016 - Forum software by © MyBB