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

[eluser]wiredesignz[/eluser]
Code:
//this is a nicer solution
    function stationCheck()
    {
        $this->validation->set_message('stationCheck', 'Start station and end station can not be same');
        
        return (bool)($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