rubing Posted April 11, 2008 Share Posted April 11, 2008 Hey all! I am collecting user data (e.g. gender, hobbies, etc...) in order to make a user profile. It seems that most people suggest using regular expressions to validate user input. That seems easy enough, but I don't really see why its neccessary, as long as I escape all the potential bad stuff. Link to comment https://forums.phpfreaks.com/topic/100582-escaping-versus-validating/ Share on other sites More sharing options...
darkfreaks Posted April 11, 2008 Share Posted April 11, 2008 should use trim() mysql_real_escape_string() and strip_tags() to sanitize and clean the data. Link to comment https://forums.phpfreaks.com/topic/100582-escaping-versus-validating/#findComment-514421 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.