Re: Validate postal

2009-05-11 Thread Braindead

Hi Dave,

I've never used the postal code validation rule, but I guess you have
to use a cutom validation rule to validate postal code from different
countries.
Why don't you ask the user for the country, the town and the postal
code? In that case you won't have to try different formats.

Hope that helps,
Markus
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Validate postal

2009-05-10 Thread Dave Maharaj :: WidePixels.com

In the cookbook 

4.1.4.23 postal validating postal codes

How can you validate the zip/postal if you don't know if its Canadian,
American or one of the others?
Can you attempt to validate if it in American format then Canadian then
others and if any of them pass is fine if not return false?

 
Dave


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---