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!