Hello Friends,
Here is a post for Zip code Validation
Zip code : Zip code should be atleast 3 & atmost 10 charcters only , should be alphanumeric & should accept dash(-).
Golden Regards,
Eluminous Support Team
eLuminous Technologies
Here is a regular expression to match 12342-1234 or just 12342 in PHP:
To determine if a valid zip code exists:Code:/^([0-9]{5})(-[0-9]{4})?$/i
From: USA's Zip Code Validation in PHPCode:if(preg_match("/^([0-9]{5})(-[0-9]{4})?$/i",$zip_code)) {
// Match
}
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks