Can I read the hash portion of the URL on my server-side application (PHP, Ruby, Python, etc.)?

前端 未结 12 2479
无人及你
无人及你 2020-11-21 04:37

Assuming a URL of:

www.example.com/?val=1#part2

PHP can read the request variables val1 using the GET array.

Is the ha

12条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-21 04:53

    I think the hash-value is only used client-side, so you can't get it with php.

    you could redirect it with javascript to php though.

提交回复
热议问题