morning Felix,

looks like you'll be needing some advanced validation:

http://wiki.cakephp.org/tutorials:advanced_validation
http://wiki.cakephp.org/tutorials:alternate_advanced_validation

by using this method you can pretty much define whatever validation
methods you like. have a read, and if anything is not clear let me
know.

HTH
freedom

On 17/10/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Hi there,
>
> I have 3 Input-fields and I would like to check, if at least one field
> has data in it to store in the database.
> Right now I have this code in my model:
>
>  var $validate = array(
>        'field1'   => VALID_NOT_EMPTY,
>        'field2'   => VALID_NOT_EMPTY,
>        'field3'   => VALID_NOT_EMPTY
>  );
>
> But with this validation the user has to type into all of these 3
> fields and not only 1.
>
> Thanks
> Felix
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to