EllisLab text mark
Advanced Search
     
$_POST issue - has to be my conf, right?
Posted: 23 June 2012 08:26 PM
Avatar
Joined: 2012-06-23
7 posts

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>Helloworld!</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.

 
Posted: 23 June 2012 08:49 PM   [ # 1 ]   [ Rating: 0 ]
Avatar
Joined: 2012-06-23
7 posts

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 face