PHP not recognizing GET variables with hash in the URL -


i have url like:

http://www.example.com/page.php#tabname 

the hash automatically open specific tab on page.

i need work _get variable, , url like:

http://www.example.com/page.php#tabname?color=red 

then on page, have:

echo $_get['red']; 

...but getting undefined index error. how php recognize variable?

you need put query string before hash:

http://www.example.com/page.php?color=red#tabname 

Comments

Popular posts from this blog

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -