$this->input->post can't find my value from a form - 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: $this->input->post can't find my value from a form (/showthread.php?tid=31612) |
$this->input->post can't find my value from a form - El Forum - 06-25-2010 [eluser]kris10[/eluser] I have a form with a field user_name when I click ok I want to put what I have on my field on a variable $u = $this->input->get_post('user_name'); echo "user ".$u; It works on local developpment but on my productiv server I have nothing on my variable. I uploaded exactly the same code execpt config parameter that I changed accordingly ( mysql .. ) I am searching this for hours..; Just ideas ... $this->input->post can't find my value from a form - El Forum - 06-25-2010 [eluser]Twisted1919[/eluser] Do a print_r($_POST) and see what you have , is your $_POST['username'] there with proper value ? If not it's something wrong with your post method or server, not CI . If it's there, try $u = $this->input->post('username'); and see if it comes out . $this->input->post can't find my value from a form - El Forum - 06-25-2010 [eluser]kris10[/eluser] I did it Local test Array ( [username] => iiii [mdp] => mmmm [submit] => Connexion ) On the productiv serveur : Array ( ) It is like my form doesn't exist on my server !! Do you think I miss to install something? $this->input->post can't find my value from a form - El Forum - 06-25-2010 [eluser]mi6crazyheart[/eluser] @kris10 Can u show us u'r view page code(form part)... ? $this->input->post can't find my value from a form - El Forum - 06-25-2010 [eluser]bhogg[/eluser] Also check out the post_max_size, though I can't see this being limited to 0 bytes... $this->input->post can't find my value from a form - El Forum - 06-25-2010 [eluser]kris10[/eluser] I deleted all my files and upload all again and it works. I suspect one file missing. thanks all for your help. all is working normaly now. :-) |