I just say "Your credit card ending in #right(card_number,4)#" - Rick
Larry Lyons wrote: >>When we receive a credit card payment I send an email (using Cfmail) >>thanking them for the payment and explaining that the charges have been >>applied to #nameofcard# and #cardnumber# what I would like to do is >>only display last 4 numbers of credit card and fill first numbers with >>asterisk as in ************6514 >> >>So how would I modify following to do that: >> >>Card Number: #creditcard.cardnumber# >> >>Jim Watkins >>VP Technology & Institutional Services >>[EMAIL PROTECTED] >>http://www.northgatech.edu > > > There's a good UDF on CFLIB called ccEscape that does this. From the site: > http://www.cflib.org/udf.cfm?ID=657 > > Escapes a credit card number, showing only the last 4 digits. The other > digits are replaced with the * character. > <cfset creditcard="4343010125259797"> > <cfoutput>#ccEscape(creditcard)#</cfoutput> > > gives you ***********9797 > > hth, > > larry > -- > Larry C. Lyons > Web Analyst > BEI Resources > American Type Culture Collection > email: llyons(at)atcc(dot)org > tel: 703.365.2700.2678 > -- > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:192151 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

