2
I need to get the data from an anchor in the url, follow link:
http://192.168.110. 4/newspaper/1-jornal1#8
I need that one ID 8
that is at the anchor, the problem is that I can’t use Javascript to catch it.
I need to use only PHP.
I am using Codeigniter, however, if I use $this->uri->segment()
, he does not recognize the anchor as a segment.
PHP will not get this information anyway. This information is specific to the browser as far as I knew. If you want something for PHP, why not use a
GET
? If this is the case, you can also use AJAX– Wallace Maxters
This is only possible with Javascript, or with Javascript + PHP, because PHP is server side, that is, it only captures information that is processed on the server side.
– Ivan Ferrer