Enso Posted October 4, 2012 Share Posted October 4, 2012 Does anyone have any recommendations as to how to validate postal codes for all countries? I know how to do it for the US and Canada, but would I need to manually add cases for every other country based on their postal code format? Quote Link to comment https://forums.phpfreaks.com/topic/269085-international-postal-code-validation/ Share on other sites More sharing options...
ManiacDan Posted October 4, 2012 Share Posted October 4, 2012 Yes, you need to do it manually. Otherwise, how would it be possible? Quote Link to comment https://forums.phpfreaks.com/topic/269085-international-postal-code-validation/#findComment-1382723 Share on other sites More sharing options...
Enso Posted October 4, 2012 Author Share Posted October 4, 2012 Hi ManiacDan, Thanks for your response. I just wanted to make sure I wasn't missing something before I started on this excursion, haha. Thanks again! Quote Link to comment https://forums.phpfreaks.com/topic/269085-international-postal-code-validation/#findComment-1382726 Share on other sites More sharing options...
Zane Posted October 5, 2012 Share Posted October 5, 2012 http://stackoverflow.com/a/7185241/401299 Quote Link to comment https://forums.phpfreaks.com/topic/269085-international-postal-code-validation/#findComment-1382760 Share on other sites More sharing options...
ManiacDan Posted October 5, 2012 Share Posted October 5, 2012 There's some pretty extensive things in Zane's list, that should get you started. Quote Link to comment https://forums.phpfreaks.com/topic/269085-international-postal-code-validation/#findComment-1382785 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.