weee Posted December 7, 2011 Share Posted December 7, 2011 Hello Everyone, I am having issues where people are submitting null characters on my website (I.e. %00). Currently, I check if their is a value by using the empty function, and I also am checking if the value after running the trim command is =="". How can I check for these special characters to make sure that whatever they are submitting actually contains some sort of legitimate value? Thanks! Link to comment https://forums.phpfreaks.com/topic/252657-check-for-empty-string/ Share on other sites More sharing options...
litebearer Posted December 7, 2011 Share Posted December 7, 2011 Validating form data... http://net.tutsplus.com/tutorials/php/sanitize-and-validate-data-with-php-filters/ Link to comment https://forums.phpfreaks.com/topic/252657-check-for-empty-string/#findComment-1295242 Share on other sites More sharing options...
Pikachu2000 Posted December 7, 2011 Share Posted December 7, 2011 And read the manual entry for [m]trim[/] to see what characters it removes. Link to comment https://forums.phpfreaks.com/topic/252657-check-for-empty-string/#findComment-1295282 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.