The14thGOD Posted November 20, 2009 Share Posted November 20, 2009 I've always been curious. Whenever I run across tutorials on the web or forums I usually see people explaining forms and their variables using $_POST. Is there any difference (mainly benefits) from using $_POST['whatever'] vs using <?php import_request_variables('p'); $whatever; ?> Thanks in advance, Justin Quote Link to comment https://forums.phpfreaks.com/topic/182314-_postwhatever-vs-whatever/ Share on other sites More sharing options...
mikesta707 Posted November 20, 2009 Share Posted November 20, 2009 not really, besides the overhead in the latter example of calling a function. You could similarly use extract() for the same kind of effect. When register_globals was turned on this happened automatically Quote Link to comment https://forums.phpfreaks.com/topic/182314-_postwhatever-vs-whatever/#findComment-962065 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.