Welcome Guest, Not a member yet? Register   Sign In
Not understanding form validation
#5

[eluser]cominus[/eluser]
Thanks for the tip, InsightFX, but that did not cure the problem. The reason for lack of else statement was because the form implied the else with
Code:
<?php echo form_open('login/loggedin'); ?>
which corresponded with the loggedin() function of the login controller (which was not displayed in my previous code segments. Nonetheless, I have updated the controller with
Code:
if ($this->form_validation->run() == FALSE)
        {
            $this->load->view('loginview', $data);
        } else {            
            $this->load->view('loggedinview', $data);
        }
but even with this, the viewer can click the empty form's submit button and travel to the next page without validation.

Any other ideas? I have spent days on this. All googling points me to the same examples and instructions I am using. Do I have a defective codeigniter framework?


Messages In This Thread
Not understanding form validation - by El Forum - 04-06-2011, 12:34 PM
Not understanding form validation - by El Forum - 04-06-2011, 01:52 PM
Not understanding form validation - by El Forum - 04-06-2011, 03:08 PM
Not understanding form validation - by El Forum - 04-07-2011, 12:59 AM
Not understanding form validation - by El Forum - 04-07-2011, 10:24 AM
Not understanding form validation - by El Forum - 04-07-2011, 10:44 AM
Not understanding form validation - by El Forum - 04-07-2011, 11:33 AM
Not understanding form validation - by El Forum - 04-07-2011, 12:43 PM
Not understanding form validation - by El Forum - 04-07-2011, 12:46 PM
Not understanding form validation - by El Forum - 04-07-2011, 01:47 PM
Not understanding form validation - by El Forum - 04-07-2011, 04:00 PM



Theme © iAndrew 2016 - Forum software by © MyBB