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

Popular posts from this blog

Out of index C/C++ -

algorithm - Graph cut with python: How to set up the graph correctly? -

objective c - how Set autolayout for multiple dynamic buttons and labells in iOS? -