Ask a Question related to Macromedia ColdFusion, Design and Development.
-
slanza #1
Strip Dashes and Spaces from Credit Card
Hi,
Does anyone know an easy way to strip dashes and spaces (or any other
characters for that matter) from a credit card.
I want to allow users to enter their credit card in any manner that they
choose and then store just the numbers in the DB.
Thanks,
Steve
slanza Guest
-
Credit Card Validation
Does any one know how to check the algorithm of the credit card number that was entered in the text box? I want to be able to make sure the users... -
Display Credit Card number with dynamic Dashes
Hi, I record Credit card numbers without the dashes in them but want to display them with the dashes. is a loop needed for this? where can I find how... -
function to strip spaces?
On 05 Aug 2003, "Jason Wolfe" <jason@infuselabs.com> wrote: Director doesn't have a built in method for this. Here's one way: on trim aString... -
[PHP] Credit card/Debit card validation
I have a mod10 validation script written in another scripting language. I could try to convert it if you would like but I am sure that someone has... -
Credit card/Debit card validation
Does anyone know of a PHP routine to validate Credit/Debit cards? I've seen some convoluted Javascript scripts but want a PHP version so validation... -
moneybagsxp #2
Re: Strip Dashes and Spaces from Credit Card
slanza,
Try this:
#ReReplace( credit_card_nbr, "[^1-9]", "", "ALL" )#
RegularExpression Replacement is a good call, as you define to remove ANY non-numeric character from your string!
moneybagsxp Guest
-
slanza #3
Re: Strip Dashes and Spaces from Credit Card
Thanks so much! That code works great.
slanza Guest



Reply With Quote

