Lucky2710 Posted August 5, 2011 Share Posted August 5, 2011 I've done this before I just can't remember how will someone point me in the right direction? Thanks Say you have this url http://myurl.com/page.php?code=AQBpGFUngD How can i pull the ''code" variable from the url back into a php variable that i can use it again on my page? Thanks ahead of time! Quote Link to comment https://forums.phpfreaks.com/topic/243974-how-to-use-php-to-get-contents-from-url/ Share on other sites More sharing options...
msaz87 Posted August 5, 2011 Share Posted August 5, 2011 $var = $_GET['code']; Quote Link to comment https://forums.phpfreaks.com/topic/243974-how-to-use-php-to-get-contents-from-url/#findComment-1252811 Share on other sites More sharing options...
Lucky2710 Posted August 5, 2011 Author Share Posted August 5, 2011 Oooo Ya! now i remember now. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/243974-how-to-use-php-to-get-contents-from-url/#findComment-1252813 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.