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! Quote Link to comment 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/ Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.