PHP & Hash / Fragment Portion of URL

前端 未结 5 865
北恋
北恋 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:29

    you could send hash fragment via AJAX to PHP script and do an immediate refresh (reload of the page)

提交回复
热议问题