Jump to content

Functions to check & Cleanse user input


holowugz

Recommended Posts

Hi,

i was just wondering which functions i should use to cleans user input, so far i have:

addslashes - (If magic quotes is not on)
htmlentities
strip_tags
htmlspecialchars
mysql_real_escape_string

---
Is there any functions i have missed or any other way of inputting malicious code that i have not accounted for, if so is there a function to remove IT?
Link to comment
https://forums.phpfreaks.com/topic/11192-functions-to-check-cleanse-user-input/
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.