Markh789 Posted August 15, 2009 Share Posted August 15, 2009 At least, I think thats what there called. When you go on my website, I want to get the value of the url from # and > E.G, http://localhost/example.php#justavalue So I want to get 'justavalue' out of it. How can I do this? Thanks. Link to comment https://forums.phpfreaks.com/topic/170353-solved-anchor-values/ Share on other sites More sharing options...
Markh789 Posted August 15, 2009 Author Share Posted August 15, 2009 After a bit of luck, I am using Javascript to put it in a cookie and PHP to read the cookie and phase with split();. Still looking for a PHP-Only way though. If theres not, please tell me so I can mark this solved. Link to comment https://forums.phpfreaks.com/topic/170353-solved-anchor-values/#findComment-898642 Share on other sites More sharing options...
trq Posted August 15, 2009 Share Posted August 15, 2009 parse_url. Link to comment https://forums.phpfreaks.com/topic/170353-solved-anchor-values/#findComment-898654 Share on other sites More sharing options...
Markh789 Posted August 15, 2009 Author Share Posted August 15, 2009 parse_url. Thankyou, very much! Link to comment https://forums.phpfreaks.com/topic/170353-solved-anchor-values/#findComment-898660 Share on other sites More sharing options...
Markh789 Posted August 15, 2009 Author Share Posted August 15, 2009 After much research, it appears fragment's (anchors) are not sent to the PHP server. parse_url did help me find this information though, thanks anyway. Link to comment https://forums.phpfreaks.com/topic/170353-solved-anchor-values/#findComment-898664 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.