12-16-2007, 02:52 AM
|
#25 (permalink)
|
|
The Contributor
Join Date: Nov 2007
Posts: 30
Thanks: 20
|
Quote:
Originally Posted by Matt83
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.
|
|
|
|