Welcome Guest, Not a member yet? Register   Sign In
callback function not working
#1

[eluser]Computerzworld[/eluser]
I have one combobox which is having select as default value and I have called one callback function for checking whether any value in the combo is selected or not. Here is the callback function which I have made.

Code:
function universitycombo_check($str)
    {
        if($str==0)
        {
            $this->validation->set_message('universitycombo_check', 'Please select any university');
            return FALSE;
        }
        else
        {
            return TRUE;
        }
    }

Now this function works only when I doesn't fill up any other form field than this combo. As soon as I fill up all the fields this validation doesn't works. I got stuck at this point. Please help me. Thank you.
#2

[eluser]Raiko[/eluser]
This is going to sound like an obvious question. Are you sure the value of the select box is coming out 0 every single time?




Theme © iAndrew 2016 - Forum software by © MyBB