Hi,

I've created a dating app for a client that is open to the US and
Canada.

I used the cake postal validation rule thinking it would validate to
either the US or Canada but it only seems to validate US.

Here is my rule:

'zip' => array(
        'rule' => array('postal', null, array('us', 'ca')),
        'message' => 'Please enter a valid Postal Code for either Canada or
the USA.'
)

Does anybody out there know of a way to have it validate both? We wont
know if the user is from the US or Canada so they could enter 04789 or
N5Y 2B5

Thanks in advance for your help!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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