detect url tags site.com/page.php#anycontent -


how can identify type of tags

eg:

site.com/file.php#inbox or site.com/another.php#spam

like gmail..

detect #inbox #spam #mycontent

i try $_server['request_uri'] not work...

the hash part (everything after , including # character) not sent server. client side (javascript) can read , use it.

the hash property can requested javascript location objects: location.hash.

if want pass data page, use parameters:

page.php?key=value 

in php, can use $_get['key'] retrieve value.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -