spfoonnewb Posted August 29, 2006 Share Posted August 29, 2006 Validating user posted data:I want to remove any HTML using: mysql_real_escape_string or strip_tags I also want to remove invalid characters, ( - , ! , # , % , ^ , & , * , ( , ) , AND , OR , WHERE , etc.... )This will be to prevent MySQL injection, can anyone help? Link to comment https://forums.phpfreaks.com/topic/19074-validating-user-input/ Share on other sites More sharing options...
hitman6003 Posted August 29, 2006 Share Posted August 29, 2006 http://www.php.net/str_replaceUse an array of all the characters you want to replace for the first arguement. Link to comment https://forums.phpfreaks.com/topic/19074-validating-user-input/#findComment-82509 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.