Re: Phone numbers and form fields

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

From: Jarkko Hietaniemi
Subject: Re: Phone numbers and form fields
Date: 21:56 on 03 Mar 2005
Michael G Schwern 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;

Don't even get me started about places that do not understand non-US
phone numbers.  Or addresses - a particularly vile subspecies of this
being forms that require entering a US state.  That's why I am often
a 112 year old granny from Alaska with the phone number of 555-1234.

-- 
Jarkko Hietaniemi <jhi@xxx.xx> http://www.iki.fi/jhi/ "There is this special
biologist word we use for 'stable'.  It is 'dead'." -- Jack Cohen

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