cgm225 Posted April 25, 2008 Share Posted April 25, 2008 How should I be filtering/validating user inputted username and passwords? Restated, before I even check to see if the provided username and password are ones I have in my database, how should I be checking their input (for mysql injections, etc.). Should I be using the filter_var() function? If so, with what setting? Or should be be using a regex? If so, again, what setting. Thank you all in advance! Link to comment https://forums.phpfreaks.com/topic/102908-how-should-i-be-filteringvalidating-user-inputted-usernamepassword/ Share on other sites More sharing options...
mikefrederick Posted April 25, 2008 Share Posted April 25, 2008 mysql_real_escape_string Link to comment https://forums.phpfreaks.com/topic/102908-how-should-i-be-filteringvalidating-user-inputted-usernamepassword/#findComment-527137 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.