jcvenom Posted June 20, 2013 Share Posted June 20, 2013 which is better to use $_GET, $_POST or $_REQUEST Quote Link to comment Share on other sites More sharing options...
KyleMassacre Posted June 20, 2013 Share Posted June 20, 2013 I think it would have to do with what your trying to perform. I will admit I have never used $_REQUEST in anything I have created and I usually only use post on forms and get when I'm trying to you know.... get a query string Quote Link to comment Share on other sites More sharing options...
jcvenom Posted June 20, 2013 Author Share Posted June 20, 2013 I think it would have to do with what your trying to perform. I will admit I have never used $_REQUEST in anything I have created and I usually only use post on forms and get when I'm trying to you know.... get a query string but $_REQUEST variable contains the contents of both $_GET, $_POST, and $_COOKIE - - - Updated - - - i think $_REQUEST would be good Quote Link to comment Share on other sites More sharing options...
KyleMassacre Posted June 20, 2013 Share Posted June 20, 2013 Well to each their own. I don't ever need to request a cookie for anything Quote Link to comment Share on other sites More sharing options...
rockwood Posted June 20, 2013 Share Posted June 20, 2013 as per my knowledge please avoid $_REQUEST, i think it is not good for practice Quote Link to comment Share on other sites More sharing options...
Guest Posted June 20, 2013 Share Posted June 20, 2013 as per my knowledge please avoid $_REQUEST, i think it is not good for practice Any reason? Simply saying "by my knowledge" doesnt cut it. but $_REQUEST variable contains the contents of both $_GET, $_POST, and $_COOKIE - - - Updated - - - i think $_REQUEST would be good http://stackoverflow.com/questions/2142497/whats-wrong-with-using-request Quote Link to comment Share on other sites More sharing options...
rockwood Posted June 20, 2013 Share Posted June 20, 2013 http://kuza55.blogspot.in/2006/03/request-variable-fixation.html 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.