Don't forget the Mod10 check to validate for fat fingering the card #.

I've got some simple validation code around somewhere that checks based on
card type + mod10 check.  If I run across it, I'll post.

Dawn

On Wed, Mar 10, 2010 at 11:22 AM, Dusty Hale <[email protected]> wrote:

> Thanks shawn. Would that be as simple as doing this:
>
> <cfif not
> refind("^((4\d{3})|(5[1-5]\d{2})|(6011))-?\d{4}-?\d{4}-?\d{4}|3[4,7]\d{13}$",trim(form.card_number),1)>
>         <!--- do something --->
>     </cfif>
>
>
> On Wed, Mar 10, 2010 at 11:12 AM, shawn gorrell <[email protected]>wrote:
>
>> ^((4\d{3})|(5[1-5]\d{2})|(6011))-?\d{4}-?\d{4}-?\d{4}|3[4,7]\d{13}$
>>
>> ------------------------------
>> *From:* Dusty Hale <[email protected]>
>> *To:* [email protected]
>> *Sent:* Wed, March 10, 2010 11:05:47 AM
>> *Subject:* [ACFUG Discuss] validating credit card numbers with CF
>>
>> Does anyone have a CF code snippet for validating credit cards numbers?
>>
>> Dusty
>>
>>
>>
>> -------------------------------------------------------------
>> To unsubscribe from this list, manage your profile @
>> http://www.acfug.org?fa=login.edituserform
>>
>> For more info, see http://www.acfug.org/mailinglists
>> Archive @ http://www.mail-archive.com/discussion%40acfug.org/
>> List hosted by FusionLink <http://www.fusionlink.com>
>> -------------------------------------------------------------
>
>
>
>
> --
> Dusty Hale
> Email: [email protected]
> Phone (Atlanta): 404.474.3754
> Phone (Toll Free USA): 877.841.3370
> Website: www.DustyHale.com
>

Reply via email to