Welcome Guest, Not a member yet? Register   Sign In
validation help required
#8

[eluser]Colin Williams[/eluser]
I usually keep my callbacks private, too.

Also, wiredesignz, you don't even need the (bool) modifier:

Code:
//this is a nicer solution
    function stationCheck()
    {
        $this->validation->set_message('stationCheck', 'Start station and end station can not be same');
        
        return $this->input->post("startStation") != $this->input->post("endStation");
    }


Messages In This Thread
validation help required - by El Forum - 05-04-2008, 10:29 PM
validation help required - by El Forum - 05-04-2008, 10:47 PM
validation help required - by El Forum - 05-05-2008, 03:44 AM
validation help required - by El Forum - 05-05-2008, 04:16 AM
validation help required - by El Forum - 05-05-2008, 06:17 AM
validation help required - by El Forum - 05-05-2008, 09:32 AM
validation help required - by El Forum - 07-09-2008, 07:20 PM
validation help required - by El Forum - 07-09-2008, 09:17 PM



Theme © iAndrew 2016 - Forum software by © MyBB