I have a form that passes credit card information (along with other variables) down through a few pages.
What I want to do is on the page where they confirm all of their info, I want to only show the last 4 digits of their credit card number.
Does anyone know what the best way of doing this would be? Right now I'm breaking the number up into 4 sections. That way I can pass only the last set of numbers through when they get to the confirmation page. The reason I want to change this is because I want to set up some code to verify their credit card number so I'll need to keep the number as one string.
Hope that makes sense.
I'm very new at PHP so please keep that in mind.
Cheers,
Rhiannon
What I want to do is on the page where they confirm all of their info, I want to only show the last 4 digits of their credit card number.
Does anyone know what the best way of doing this would be? Right now I'm breaking the number up into 4 sections. That way I can pass only the last set of numbers through when they get to the confirmation page. The reason I want to change this is because I want to set up some code to verify their credit card number so I'll need to keep the number as one string.
Hope that makes sense.
I'm very new at PHP so please keep that in mind.
Cheers,
Rhiannon