Note Submitter: Hup2.com
----
if anyone needs the code to validate a uk postcode I have
included it below:
// check post code is in correct format
if
(!ereg("^[A-Z]{1,2}[0-9]{1,2}[[:space:]][0-9][A-Z]", strtoupper($postcode))) {
print "You need to enter a valid post
code!<br/><br/>";
}
Hope this helps someone
Chris
--
PHP Notes Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php
|