473,503 Members | 3,715 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASP code - cover up credit card #'s

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!
Nov 19 '05 #1
3 1536
Dani wrote:
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>"
///

--

(O) e n o n e
Nov 19 '05 #2
That did the trick. Thanks so much!

"Oenone" <oe****@nowhere.com> wrote in message
news:LI*************@newsfe6-win.ntli.net...
Dani wrote:
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>"
///

--

(O) e n o n e

Nov 19 '05 #3
>
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>"


"Dani" <da**@energyvelocity.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl... 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!


__________________________________________________ _____________________________
Posted Via Uncensored-News.Com - Accounts Starting At $6.95 - http://www.uncensored-news.com
<><><><><><><> The Worlds Uncensored News Source <><><><><><><><>

Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
3907
by: sam1967 | last post by:
I know how to build forms with ASP and process user input. Now i want to take credit card payments via a form. i will then download the details and process them via our credit card machine. do...
6
3341
by: Simon Wigzell | last post by:
My client wants to have credit card information fields on his forms for his website visitors to be able to buy his wervices by credit card. The credit card info - Brand, number and expiry date will...
6
2033
by: Arne | last post by:
What would be a good component for processing credit cards? (I am not using commerce server.) Would I need to encrypt the credit card column in the database?
4
4995
by: Jerry Camel | last post by:
I'm writing and ASP.net app using vb .net. I need to interact with a credit card reader. I have one that sits inline with the keyboard. Works great, except for the fact that no matter what field...
12
11137
by: Jerry Camel | last post by:
Not sure if this is a good place to post this... I'm writing and ASP.net app using vb .net. I need to interact with a credit card reader. I have one that sits inline with the keyboard. Works...
3
1684
by: mikekissman | last post by:
I've built an online reservation website in ASP .NET with a SQL Server backend. It allows customers to search for available resources, than charges their credit card a fee to hold the reservation....
12
1910
by: MQ.john | last post by:
//Working Example: #include <stdio.h> #include <time.h> int main () { time_t rawtime; /* define rawtime as time_t */ time ( &rawtime );
1
2948
by: securedcardss | last post by:
http://card.2youtop.info secured credit card card credit instant secured card cash credit secured card
5
5579
by: snehadulur | last post by:
In the input box if we click ok or cancel the invoice prints. By default the credit card info is 0, and most of the cases its 0 even when we want to take a print out i.e., the value is changed. I...
0
7192
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
5559
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4991
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4665
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3158
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3147
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1492
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
721
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
369
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.