I need to check my postal code field for Canada and US postal codes..
I tried using the following postal validation but it doesn't work..

                'postal_code' => array(
                        'zip' => array(
                                'rule'                  => array('postal', 
null, 'us'),
                                'required'              => true,
                                'allowEmpty'    => false,
                                'message'               => 'Invalid postal/zip 
code'
                        ),
                        'postal' => array(
                                'rule'                  => array('postal', 
null, 'ca'),
                                'required'              => true,
                                'allowEmpty'    => false,
                                'message'               => 'Invalid postal/zip 
code'
                        )
                )

it seems perhaps this type of validation is ANDed and not ORd .. Is
this correct?  Is there a way I can check for both countries without
writing my own validation routine?
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to