phphelpme Posted December 8, 2012 Share Posted December 8, 2012 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 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 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. 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 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() Link to comment https://forums.phpfreaks.com/topic/271765-help/#findComment-1398312 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.