phphelpme Posted December 8, 2012 Share Posted December 8, 2012 (edited) alright , do you know how to get the section from the url , the token part and turn that into a variable ? example would be like this they instert the url here <form action="list.php" method="post"> <input name="token" type="text" style="width:200px;"/> <input type="submit" class="btn btn btn-info btn-mini" value="Login" /> </form> and then on list.php it seperates the token and makes it a variable the url looks like this http://localhost/instalike/code.php#access_token=263222910.4d15ef2.0b42098ba3b845b9940af5b46i just need the access_token i just need the access_token each access token will be different Edited December 8, 2012 by phphelpme Quote Link to comment https://forums.phpfreaks.com/topic/271765-help/ Share on other sites More sharing options...
phphelpme Posted December 9, 2012 Author Share Posted December 9, 2012 the url is shortend for some reason ? its http://localhost/instalike/code.php#access_token=263222910.4d15ef2.0b42098ba3b845b9940af5b4687274ef Quote Link to comment https://forums.phpfreaks.com/topic/271765-help/#findComment-1398291 Share on other sites More sharing options...
Andy123 Posted December 9, 2012 Share Posted December 9, 2012 I'm not really sure why a # is used in the URL. Change it to a question mark and then you can use $access_token = $_GET['access_token']; Perhaps you can even do it anyways with a #, I am actually not sure. But either way, it's not the standard way to do it even if you can. Quote Link to comment https://forums.phpfreaks.com/topic/271765-help/#findComment-1398296 Share on other sites More sharing options...
phphelpme Posted December 9, 2012 Author Share Posted December 9, 2012 actually its the instagram api token so they control it , not me sorry Quote Link to comment https://forums.phpfreaks.com/topic/271765-help/#findComment-1398311 Share on other sites More sharing options...
MDCode Posted December 9, 2012 Share Posted December 9, 2012 parse_url() Quote Link to comment https://forums.phpfreaks.com/topic/271765-help/#findComment-1398312 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.