Welcome Guest, Not a member yet? Register   Sign In
CI FormValidation question
#1

[eluser]i_am_using_ci[/eluser]
Hi, is there any way to use FormValidation callbacks as functions/methods in application without form validation?

For example, I need to check if $var contains valid email, but it's not form variable...

Thanks.
#2

[eluser]pistolPete[/eluser]
You could try this:
Code:
$var = '[email protected]';
$this->load->library('form_validation');
if($this->form_validation->valid_email($var))
{
   echo 'valid email!';
}




Theme © iAndrew 2016 - Forum software by © MyBB