CodeIgniter Forums
$_POST data not coming in on remote site - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: $_POST data not coming in on remote site (/showthread.php?tid=31488)



$_POST data not coming in on remote site - El Forum - 06-21-2010

[eluser]adam_v[/eluser]
issue resolved.


$_POST data not coming in on remote site - El Forum - 06-21-2010

[eluser]WanWizard[/eluser]
If you turn on debugging (log_threshold = 4), so you see the admin controller get loaded?

On your local machine, do you also run it from the /dev folder? If not, is the base_url() defined properly? No .htaccess rewrites or routing getting in the way?


$_POST data not coming in on remote site - El Forum - 06-21-2010

[eluser]adam_v[/eluser]
[quote author="WanWizard" date="1277155652"]If you turn on debugging (log_threshold = 4), so you see the admin controller get loaded?

On your local machine, do you also run it from the /dev folder? If not, is the base_url() defined properly? No .htaccess rewrites or routing getting in the way?[/quote]

the admin controller is definitely getting loaded, because the login() function is working..

locally, i do not run it from dev, but the base_url is properly configured. as you can see the rewrites work fine on every other page.



Now here's a weird thing:
I changed my authenticate() function to this:

Code:
function authenticate() {
echo 'request method: '.$_SERVER["REQUEST_METHOD"].'<br/>';
echo 'post data: ';print_r($_POST);
}

And it's telling me that $_SERVER["REQUEST_METHOD"] is GET! I have defined the method as 'post' in the login form:

Code:
&lt;?=form_open('admin/authenticate',array('id'=>'login','method'=>'post'));?&gt;


scratching my head here..


$_POST data not coming in on remote site - El Forum - 06-21-2010

[eluser]adam_v[/eluser]
Ok, so now it's spontaneously working fine. I blame dreamhost messing up php config.