Thanks for making this function Michael, but can I please pass this
BEGGING PLEA ..... 

<cf_soapbox>
If you want people outside the USA to fill in this form, DON"T use this
function!!!!   Most countries use a different numbering system to the USA.
They don't fit into this pattern.  Some places  don't even have area
codes.  And if they do have area codes, they aren't all 3 numbers.

The dutch for example, use a 99 99 99 99 pattern.  Here in Australia we
use (99) 9999 9999 or 9999 999 999.  Then this isn't much use without the
country code.  So the international format for an Australian number is
99-9-9999-9999.   

THerefore, if you use Michael's function, and someone from outside the USA
fills in your form, you're going to have information that looks like it's
valid, but isnt.

The worst case of this I have found was a famous international software
company I bought some software from a year or so ago.  Their form required
me to give them a zip code, a us-style phone number and -believe it or not
- a social security number.   I had to keep trying the form inventing
numbers until it was happy with the numbers I'd made up.  It didn't like
our 4 digit postcodes, so I had to use a 5 digit one I saw on an ad in an
American magazine.  It didn't like my 8 digit phone number, so I gave it a
number from another ad in the same magazine, and I had my brother's social
security number, so I changed it and tinkered around with it until the
form was happy with my fictional details.

Just my plea for keeping the Internet International.
</cf_soapbox>

Cheers,
Mike Kear
AFP Web Development
Windsor, NSW, Australia 
http://www.afp.zip.com.au


On Tue, 1 Aug 2000, Michael Dinowitz wrote:

> OK, I need some community input here. For my article on custom functions,
> I've written one for IsEmail and IsPhone. Can people send me a few others to
> 'add in'. I'd like the article to have a few pre-built functions that can be
> used right off the bat. The only limits are that they must be built using
> functions in CF. No tags. For example, IsPhone uses this code:
> REFindNoCase('([0-9]{3}[-_. /]?)?[0-9]{3}[-_. /]?[0-9]{4}', number)
> 
> ----- Original Message -----
> From: "Michael Dinowitz" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, August 01, 2000 12:42 PM
> Subject: Re: Functions in Cold Fusion
> 
> 
> > I'm currently writing an article for the next Fusion Authority (out in the
> > next day) on how to write and use custom functions in CF. This is not
> using
> > modules or any CF tags but is actually using function calls. It's a bit of
> a
> > hack and can look ugly in places, but it works. The result is that I can
> > have something like IsValidEmail(email) and it'll return a value that says
> > yes or no.
> >
> > --------------------------------------------------------------------------
> ----
> > Archives: http://www.mail-archive.com/[email protected]/
> > To Unsubscribe visit
> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
> send a message to [EMAIL PROTECTED] with 'unsubscribe' in
> the body.
> >
> 
> ------------------------------------------------------------------------------
> Archives: http://www.mail-archive.com/[email protected]/
> To Unsubscribe visit 
>http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
>message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
> 

------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to