Add 'allowEmpty' paramter to your email validation rule and set it to true, something like this
$validate = array ( 'email' => array('rule' => 'email', 'message' => 'invalid email', 'allowEmpty' => true); ); On Oct 6, 11:03 am, sijo jose <jose.s...@gmail.com> wrote: > Hi folks, > > I have a email field which is not mandatory. But i would like it to b > validated if at all it is entered. > > Please suggest. > > -- > Sijo Jose Chakramakkil --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---