php - get the value from URL using number sign # -
Hello if I have an href with # test = 10 , then I How can I get Codeigniter?
Example: I have
www.example.com/tester#test=10
what
it is possible to get the value of the test
Try to use PHP
$ url = Parse_url ("http: // domain .com / # test = 10 "); Copy $ url ["fragment"]; If the URL fragment test = 10 then explosion ()
$ e = explosion ('=', $ url Use) ["piece"]); Echo $ E [1]; or use Javascript
warning (window.location.hash); And divide it for more: -
Comments
Post a Comment