Hey, is there a possible way to display the stars (*) on a webpage but not in password field?
For example on Amazon is it possible to display hidden credit/debit card numbers?

Recommended Answers

Care to explain a little more? Sounds like illegal activity.

Jump to Post

All 4 Replies

Care to explain a little more? Sounds like illegal activity.

For example <tr>************9212</tr>. Is it possible to view it? I am not trying to be illegal.

Is it possible to view it?

No, not possible. This information is not sent to the browser.

So I assume your looking at the page's source view since you have included the HTML elements in your example. As pritaeas mentioned, the browser is not receiving all of the credit card numbers. It's actually getting the asterisks from the webserver so they data is not sent in transit.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.