Welcome Guest, Not a member yet? Register   Sign In
form_validation->run() not working as expected
#2

[eluser]JHackamack[/eluser]
I believe your second test:

if ( $form_return = $this->form_validation->run() == FALSE )
{
}

is incorrectly written as its both setting values and comparing values,

I would instead try

$form_return = $this->form_validation->run();

if($form_return == FALSE )
{
}

Does that work correctly?


Messages In This Thread
form_validation->run() not working as expected - by El Forum - 01-12-2010, 07:06 PM
form_validation->run() not working as expected - by El Forum - 01-12-2010, 08:12 PM
form_validation->run() not working as expected - by El Forum - 01-12-2010, 09:31 PM
form_validation->run() not working as expected - by El Forum - 01-12-2010, 11:08 PM



Theme © iAndrew 2016 - Forum software by © MyBB