PHP & Hash / Fragment Portion of URL

前端 未结 5 853
北恋
北恋 2020-12-03 08:42

I am trying to find a way to save the hash portion of a url and as a PHP variable. This idea is a bit kooky, but bear with me...

I\'d like to extract the \"location

5条回答
  •  春和景丽
    2020-12-03 09:21

    Once you have send the values to server via AJAX. You can set the fragment values in SESSION. When you refresh the page, you can get the fragment which was set in session and process then display the corresponding content. Because we can't get get the fragment values through PHP_SELF / QUERY_STRING and etc. We need this to increase the speed of our web page like Gmail.

提交回复
热议问题