On 12/04/2003 9:53 AM, Rankin, Randy <[EMAIL PROTECTED]> wrote:
> I have a form which captures US addresses ( address, city, state ) and
> telephone numbers ( 10 digit ) and am writing this data to a MySQL table. I
> need to expand this to capture non-US info, so I was hoping for some
> guidance o
have a look at the pear Validate class - this is what you need.
In the UK the postal code is (as a preg expression)
/[A-Za-z]{1,2}[0-9]{1,2}[A-Za-z]\s?[1-9][A-Za-z]{2}/
these are valid postcodes
B1 4RT
B56 6TY
BN5 6ER
SW1A 1AA (<- the queen @ buck palace)
SW14 5RT
ie. one or 2 letters, followe
On Thu, Dec 04, 2003 at 09:53:16AM -0600, Rankin, Randy wrote:
> I have a form which captures US addresses ( address, city, state ) and
> telephone numbers ( 10 digit ) and am writing this data to a MySQL table. I
> need to expand this to capture non-US info, so I was hoping for some
> guidance on
SM> I can tell you for France :
SM> zip code : 5 digits (may begin by '0')
SM> state : not relevant
SM> phone number : 10 digits or +33 and 9 digits
For the UK you'll need (on average!) 8 characters for the postal (zip)
code and it must allow letters and a space: BS15 7HL for example. Some
postcod
I have a form which captures US addresses ( address, city, state ) and
telephone numbers ( 10 digit ) and am writing this data to a MySQL table. I
need to expand this to capture non-US info, so I was hoping for some
guidance on forms and table structures. I have googled this to death and
still have
I can tell you for France :
zip code : 5 digits (may begin by '0')
state : not relevant
phone number : 10 digits or +33 and 9 digits
Rankin, Randy wrote:
I have a form which captures US addresses ( address, city, state ) and
telephone numbers ( 10 digit ) and am writing this data to a MySQL table.
6 matches
Mail list logo