Hello if I have an href with #test=10
, how can I get that value using codeigniter?
Example: I have www.example.com/tester#test=10
Is it possible to get the value of test
?
Hello if I have an href with #test=10
, how can I get that value using codeigniter?
Example: I have www.example.com/tester#test=10
Is it possible to get the value of test
?
Try using php
$url=parse_url("http://domain.com/#test=10 ");
echo $url["fragment"];
if url fregment test=10 then use explode()
$e = explode('=', $url["fragment"]);
echo $e[1];
or using javascript
alert(window.location.hash); and split it
For more :- Get fragment (value after hash '#') from a URL in php
I don't think php can get that value alone.
$_SERVER['query_string']
or similare skip the hash.