Yesideez Posted July 11, 2007 Share Posted July 11, 2007 When using $_REQUEST, which takes priority? Is it fetching from the URL or from a form that has method set to post? Quote Link to comment Share on other sites More sharing options...
trq Posted July 11, 2007 Share Posted July 11, 2007 This is defined within your php.ini. From mine.... 388 ; This directive describes the order in which PHP registers GET, POST, Cookie, 389 ; Environment and Built-in variables (G, P, C, E & S respectively, often 390 ; referred to as EGPCS or GPC). Registration is done from left to right, newer 391 ; values override older values. 392 variables_order = "EGPCS" Quote Link to comment Share on other sites More sharing options...
Yesideez Posted July 11, 2007 Author Share Posted July 11, 2007 Ah so do you reckon it's best to check for $_POST and if empty read $_GET just in case my ini changes? I don't want my script falling over if the ini changes on a different server when/if I change! Quote Link to comment Share on other sites More sharing options...
Yesideez Posted July 11, 2007 Author Share Posted July 11, 2007 I've opted to check myself as mentioned above to reduce the chance of something going wrong in the future. 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.