Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Want to show only last 4 digits of credit card number

Status
Not open for further replies.

Rhiannon

Technical User
Feb 8, 2002
55
US
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top