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