> As I say, a first stab to get the ball rolling. Tim asked for 
> a PC validator: is that to validate that the Post Code 
> actually exists, or validate it's structure so that it could 
> possibly exist? You can't assume that the user enters in 
> upper case, unless you force it before validating.
> 
> I agree, a straight look up would be more accurate. Perhaps 
> there's a web service to check post codes. Perhaps, though, 
> this is overkill for what Tim is wanting here.

We're doing a postcode lookup to autofill an address, but we need
something to verify that a postcode is at least _syntactically_ valid if
for some reason it's not in the PAF database.  For example, a friend of
mine has recently moved into a house on a new estate, and their postcode
is not yet available in the PAF database...

I've just found the PAF digest info which defines the structure of a
postcode, so I'll post my version of the regex shortly...  :o)

Tim.


-------------------------------------------------------
OUR NEW SITE IS NOW LIVE
Visit our new website at http://www.rawnet.com/ and
race around the beautiful Bracknell streets at
http://xmas.rawnet.com/
-------------------------------------------------------
Tim Blair
Web Application Engineer, Rawnet Limited
Direct Phone : +44 (0) 1344 393 441
Switchboard : +44 (0) 1344 393 040
-------------------------------------------------------
This message may contain information which is legally
privileged and/or confidential.  If you are not the
intended recipient, you are hereby notified that any
unauthorised disclosure, copying, distribution or use
of this information is strictly prohibited. Such
notification notwithstanding, any comments, opinions,
information or conclusions expressed in this message
are those of the originator, not of rawnet limited,
unless otherwise explicitly and independently indicated
by an authorised representative of rawnet limited.
-------------------------------------------------------




-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to