I’m using CodeIgniter next to a WordPress install.
So, I’ve got this site that I developed on one server. That works fine. I’ve moved it to another server and actually hacked it up to make another site which also works fine.
So now I’ve moved that site to a third server and my forms aren’t posting right, or something.
They are submitting to the correct controller but when I var_dump $_POST or $this->input->post('anyvariable') Im getting empty arrays and falses.
I’m banging my head against the wall over this. I’m thinking maybe it’s a .htaccess problem as nothing else has changed from the other sites.
Can anyone suggest a way to resolve this?
Ok so i turns out that I was getting a 301 redirect when I submitted the form because in my codeigniter config file i didn’t put http://www.mysite.com but instead had http://mysite.com.
Thats why my post data was being cleared but I was still reaching the correct controller to do the var_dump.
I noticed this after checking the Net tab in firebug.
I should have realized this sooner but i was coding for 12 hours already when I got to this point because I needed to make a deadline.