Web Hosting Buzz Reseller and Dedicated Server Hosting Forums  

Go Back   Web Hosting Buzz Reseller and Dedicated Server Hosting Forums > Your Website

Reply
 
Thread Tools Display Modes
  #1  
Old 07-25-2009, 12:09 PM
janet janet is offline
New Bee
 
Join Date: Jul 2009
Posts: 3
Default Uk Postcode validation

Hi everyone
Please does anybody know how to validate uk postcode? On my contact page I want user to enter their postcode but I dont want them to enter anything, I want it to be in the wright format, the postcode does not have to be correct, but it should be in the wright format. Please help.
Reply With Quote
  #2  
Old 07-25-2009, 01:15 PM
Alan B's Avatar
Alan B Alan B is offline
WHB Helper
 
Join Date: Jul 2007
Location: Toronto, Canada
Posts: 1,134
Default

I suggest that you do a search for existing scripts, either client side (such as javascript) or server side (such as PHP) to do what you want. I would think that many such scripts have been created, so some of them may be available for download.
__________________
I am not WHB staff and I am not paid.
I provide help in these forums on my own time.
Reply With Quote
  #3  
Old 07-27-2009, 06:18 PM
Matt R's Avatar
Matt R Matt R is offline
Administrator
 
Join Date: Jul 2006
Posts: 1,406
Default

UK post codes are in the format of SW1 ABC

The first set of characters can be 2, 3 or 4 digits though.
__________________
Matt R.
WHB Chief Ninja
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump


All times are GMT. The time now is 07:50 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright WHB Networks LLC. All rights reserved.
SEO by vBSEO 3.2.0