Re: Phone numbers and form fields

[prev] [thread] [next] [lurker] [Date index for 2005/03/04]

From: Philip Newton
Subject: Re: Phone numbers and form fields
Date: 05:35 on 04 Mar 2005
On Thu, 3 Mar 2005 16:21:16 -0500, Michael G Schwern <schwern@xxxxx.xxx> wrote:
> To log into T-Mobile's web site you give them your phone number.  Ok.
> 
> 123.456.7890
> 
> "12345678: Your phone number should be 10 digits.  For example: 1234567890"
> 
> How hard is it to strip out non-digits from input, people?!
> 
> I see this all the time.  Phone numbers.  Credit card numbers.  Postal codes.
> I mean, christ.  $input =~ s/\D+//g;

Argh. Hate this, too. In my case in particular, German bank sort
codes. Which are eight digits long and are conventionally displayed as
NNN NNN NN, including the spaces. And being Germans, they even have a
DIN standard saying so. (Much, I believe, as American social security
numbers are conventionally displayed in certain groups.)

But does my online banking service let me enter a bank sort code in
that format? Well, it does, but that's pretty recent. Before about
three months ago or so, it only accepted NNNNNNNN: eight digits, no
spaces. Was especially fun when copy-and-pasting a sort code from,
say, an email asking you to send them money, and only the first "NNN
NNN " would be pasted since the field was limited to eight characters.

Hello? It's only *the* standard way to write sort codes and you don't
let them enter them in that fashion?

Cheers,
-- 
Philip Newton <philip.newton@xxxxx.xxx>

Generated at 05:00 on 02 Apr 2005 by mariachi 0.52