tibberous Posted December 27, 2010 Share Posted December 27, 2010 I like to use $_REQUEST to get something from either $_POST or $_GET. Annoying though, it also includes values from cookie, like the PHP session id, FCK editor cookies and the google tracking code. Is there anyway to remove cookie values from request, besides looping through cookie and unsetting the values I don't want? Quote Link to comment Share on other sites More sharing options...
BlueSkyIS Posted December 27, 2010 Share Posted December 27, 2010 use only specific REQUEST values, don't take "anything and everything the user sends". Quote Link to comment Share on other sites More sharing options...
kenrbnsn Posted December 27, 2010 Share Posted December 27, 2010 Don't use the same variable name in both $_GET & $_POST and always use the one you expect from either $_GET or $_POST. Don't use $_REQUEST. Ken 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.