malikah Posted July 8, 2009 Share Posted July 8, 2009 Is it necessary to use htmlentities() for isset() as a security feature? eg: if( isset( $_REQUEST['botdetector'] ) ) VS. if( isset( htmlentities($_REQUEST['botdetector']) ) ) Quote Link to comment https://forums.phpfreaks.com/topic/165213-htmlentities-for-isset/ Share on other sites More sharing options...
rhodesa Posted July 8, 2009 Share Posted July 8, 2009 nope...you just need that when displaying it. to keep people from injecting HTML tags into your page Quote Link to comment https://forums.phpfreaks.com/topic/165213-htmlentities-for-isset/#findComment-871204 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.