I used the UDF ccEscape and it does a fine job. This also introduced me to http://www.cflib.org and I have found other nice things
Jim W -----Original Message----- From: Larry Lyons [mailto:[EMAIL PROTECTED] Sent: Friday, January 28, 2005 2:50 PM To: CF-Talk Subject: Re: Hiding Credit Card Numbers >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 -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:192554 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=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

