Jump to content

Input Sanitization


N-Bomb(Nerd)

Recommended Posts

Hello,

 

I have a website where users are able to register. I'd like to be able to greet the user by their username, much like "Welcome, UsernameHere". However, they're able to register with a name like <b>Bold</b> and when outputting the welcome their username is "Bold", but it's actually bold. Is there a way to actually output whatever the person registers as without actually executing it?

 

I don't have a problem with the database part because I'm using prepared statements, but this part is seeming to stump me pretty well.

Link to comment
https://forums.phpfreaks.com/topic/204451-input-sanitization/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.