Welcome Guest, Not a member yet? Register   Sign In
$this->input->post can't find my value from a form
#1

[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 ...
#2

[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 .
#3

[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?
#4

[eluser]mi6crazyheart[/eluser]
@kris10
Can u show us u'r view page code(form part)... ?
#5

[eluser]bhogg[/eluser]
Also check out the post_max_size, though I can't see this being limited to 0 bytes...
#6

[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. :-)




Theme © iAndrew 2016 - Forum software by © MyBB