View Single Post
Old 12-16-2007, 02:52 AM   #25 (permalink)
webosb
The Contributor
 
webosb's Avatar
 
Join Date: Nov 2007
Posts: 30
Thanks: 20
webosb is on a distinguished road
Default

Quote:
Originally Posted by Matt83 View Post
Postal Codes:

PHP Code:
$string "55324-4324";
if (
preg_match('/^[0-9]{5,5}([- ]?[0-9]{4,4})?$/'$string)) { 
echo 
"example 4 successful.";

Looks like validating postal codes only work for US Postal Codes. Austalaia has 4 digit zip codes and UK has letters ...Is there a way to make the Postal Code validation work internationally?
__________________
one outstanding employee does more and costs less than two adequate performers.
webosb is offline  
Reply With Quote