Welcome Guest, Not a member yet? Register   Sign In
Validating a Form - How to set values on Dropdown Boxes?
#4

[eluser]Sinclair[/eluser]
I have another doubt...

It is possible to have Callbacks with more thab 1 parameter?

The problem is that I have 3 select boxes for input the date of birth, and I need to validade if the user don't input 31 of february, for example.

I have userd the checkdate function, something like this:

Code:
function veracidade_check($vMES, $vDIA, $vANO){
        $valor = checkdate($vMES, $vDIA, $vANO);
        if ($valor == '1')
            {
                
                return true;
            }        
            else
            {
                $this->form_validation->set_message('anodatanascimento_check', 'O %s tem de estar preenchido.');
                return false;
            }
    }

It is possible to use callback function with more than 1 parameter? If not, how can I validate the inputs of 3 select boxes?


Best Regards,


Messages In This Thread
Validating a Form - How to set values on Dropdown Boxes? - by El Forum - 03-06-2010, 04:47 PM



Theme © iAndrew 2016 - Forum software by © MyBB