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

Cursor error with postgresql, pgpool and php -

delphi - ESC/P programming! -

c++ - error: use of deleted function -