Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / July 2005

Tip: Looking for answers? Try searching our database.

ASP code - cover up credit card #'s

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dani - 15 Jul 2005 23:05 GMT
We currently have an online form that customers fill out to buy one of our
products.  After they submit it, it sends them an email containing all the
order information including the credit card #.  It currently sends the
entire # which we would like to change to xxxx-xxxx-xxxx-1234.  Does anyone
know how to do this?  I don't know asp well enough to know how to change
cardno to use the x's instead of the actual #.  The current code is:
If cardno <> "" then

strHTML = strHTML & "<B>You have chosen to pay with the following Credit
Card:</B><br>"

strHTML = strHTML & "<B>Card Type :"&"<font style = 'color:#0000FF'>" & CC &
"</font></B><br>"

strHTML = strHTML & "<B>Card Number :"&"<font style = 'color:#0000FF'>" &
cardno & "</font></B><br>"

strHTML = strHTML & "<B>Expiration Date :"&"<font style = 'color:#0000FF'>"
& expiremonth & "," & " " & expireyear & "</font></B><br>"

Thanks for your help!
Oenone - 15 Jul 2005 23:24 GMT
> strHTML = strHTML & "<B>Card Number :"&"<font style =
> 'color:#0000FF'>" & cardno & "</font></B><br>"

How about:

\\\
strHTML = strHTML & "<B>Card Number :<font style =
'color:#0000ff'>xxxx-xxxx-xxxx" & Right(cardno,4) &"</font></B><br>"
///

Signature

(O) e n o n e

Dani - 16 Jul 2005 00:21 GMT
That did the trick.  Thanks so much!

>> strHTML = strHTML & "<B>Card Number :"&"<font style =
>> 'color:#0000FF'>" & cardno & "</font></B><br>"
[quoted text clipped - 5 lines]
> 'color:#0000ff'>xxxx-xxxx-xxxx" & Right(cardno,4) &"</font></B><br>"
> ///
Robert Smith - 16 Jul 2005 16:52 GMT
> strHTML = strHTML & "<B>Card Number :"&"<font style = 'color:#0000FF'>" &
> cardno & "</font></B><br>"
>
> strHTML = strHTML & "<B>Expiration Date :"&"<font style = 'color:#0000FF'>"
> & expiremonth & "," & " " & expireyear & "</font></B><br>"

> We currently have an online form that customers fill out to buy one of our
> products.  After they submit it, it sends them an email containing all the
[quoted text clipped - 17 lines]
>
> Thanks for your help!

 

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.