navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

convert credit card numbers to ***

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> convert credit card numbers to ***
Page: [1]
 
mfalk

 

Posts: 330
From: Centereach,NY
Status: offline

 
convert credit card numbers to *** - 5/15/2003 16:02:56   
Does anyone know how to make it so on certain pages, i can make credit card numbers appear as ***********1234? just the last four digits show, but the rest are *?

id want the person processing the cards to see the number, but noone else.

thanks in advance.

Mark
Spooky

 

Posts: 26597
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: convert credit card numbers to *** - 5/16/2003 7:30:13   
Use something like :
<%=" **********-" &Right(INPUT,4)%>

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to mfalk)
mjmtravel

 

Posts: 189
Joined: 7/30/2006
Status: offline

 
RE: convert credit card numbers to *** - 2/6/2008 20:25:35   
What about doing the same thing when your updating a database and showing results on another page?

<input NAME="CCNumber" SIZE="40" VALUE="<%=FP_FieldHTML(fp_rs,"CCNumber")%>" tabindex="23"></td>

Can you replace this <%=FP_FieldHTML(fp_rs,"CCNumber")%>"
with this somehow.
<%=" **********-" &Right(INPUT,4)%>

(in reply to Spooky)
BobbyDouglas

 

Posts: 5432
Joined: 5/15/2003
From: Arizona
Status: offline

 
RE: convert credit card numbers to *** - 2/6/2008 21:45:19   
Mark,

Not sure if you already do this or not, but figured I would mention it anyways. :)

You should think about using some sort of encryption within your database if you plan to store credit cards.

Credit card companies have specific requirements you need to follow if you want to be compliant (meaning, if you don't want to be fined). Also, keep in mind that the number on the back of the CC cannot be stored in the database.

_____________________________

Arizona Web Design - Mr Bobs Web Design in Arizona
The Arizona Web Hosting Challenge

(in reply to mjmtravel)
Spooky

 

Posts: 26597
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: convert credit card numbers to *** - 2/7/2008 13:59:59   
Id agree, personally Id rather not store them at all

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to BobbyDouglas)
mjmtravel

 

Posts: 189
Joined: 7/30/2006
Status: offline

 
RE: convert credit card numbers to *** - 2/7/2008 17:21:46   
I realize that and none of the numbers will be stored in the database for more than 2 hours. The site will have ssl certificate and a database that is password protected and encrypted.

Now for the question at hand. Can this be done?

(in reply to Spooky)
Spooky

 

Posts: 26597
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: convert credit card numbers to *** - 2/10/2008 16:54:52   
Like so :)

<%="**********-"& Right(FP_Field(fp_rs,"CCNumber"),4)%>"



_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to mjmtravel)
mjmtravel

 

Posts: 189
Joined: 7/30/2006
Status: offline

 
RE: convert credit card numbers to *** - 2/10/2008 18:16:07   
Thank you, that works beautifully.

(in reply to Spooky)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> convert credit card numbers to ***
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts