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

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -