CodeIgniter Forums

Full Version: validation problem in server system
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]MASS MASS[/eluser]
I am getting validation problem in server system........ in localhost its working fine .....
Example : login page

in controller i wrote
function login()

{

$rules['email'] = "trim|required|xss_clean";
$rules['password'] = "trim|required|xss_clean";
$this->validation->set_rules($rules);

$fields['email'] = 'E-mail';
$fields['password'] = 'Password';
$this->validation->set_fields($fields);

if ($this->validation->run() == FALSE)
{

$this->load->view('users/login',$arr_data);

}

else
{
echo sucess......;

}

}

from above function its always going to if condition ..... but its working fine in localsystem........

Please help........ its urgent

El Forum

[eluser]GSV Sleeper Service[/eluser]
try this
Code:
if ($this->validation->run() === FALSE)

El Forum

[eluser]MASS MASS[/eluser]
HI gsv ......

I tried to this....... its not working........