jcvenom Posted June 20, 2013 Posted June 20, 2013 which is better to use $_GET, $_POST or $_REQUEST Quote
KyleMassacre Posted June 20, 2013 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
jcvenom Posted June 20, 2013 Author 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
KyleMassacre Posted June 20, 2013 Posted June 20, 2013 Well to each their own. I don't ever need to request a cookie for anything Quote
rockwood Posted June 20, 2013 Posted June 20, 2013 as per my knowledge please avoid $_REQUEST, i think it is not good for practice Quote
Guest Posted June 20, 2013 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
rockwood Posted June 20, 2013 Posted June 20, 2013 http://kuza55.blogspot.in/2006/03/request-variable-fixation.html Quote
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.