Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mask digits in output?

Status
Not open for further replies.

castellu

Technical User
Feb 14, 2001
9
US
I want to mask the digits of a number output in my pages. I have an 8 digit number and want to only display the last 4 digits to be read. I want the output to look like XXXX1234. I have seen this done with credit card numbers on many sites so your number is not readable, but can't seem to figure out how to do it using Cold Fusion? Any help would be great. -------------------------------------
castellu
 
<CFSET x = &quot;12345678&quot;>

<CFOUTPUT>
XXXX#Right(x,4)#
</CFOUTPUT>

that would do it
 
That is it...Thanks for the quick help. -------------------------------------
castellu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top