php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #50507 Query String doesn't bring the value after #
Submitted: 2009-12-17 13:26 UTC Modified: 2009-12-17 15:45 UTC
From: m dot kathirav at gmail dot com Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 5.3.1 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: m dot kathirav at gmail dot com
New email:
PHP Version: OS:

 

 [2009-12-17 13:26 UTC] m dot kathirav at gmail dot com
Description:
------------
Query String doesn't bring the value after #. The string after #(including #) are ignored 

Example:

If I give an URL like: http://www.example.com/index.html#tab1 in the browser

I am trying to make up a page with tabs in which the following should happen: 

If given http://www.example.com/index.html#tab1, this should enable the tab1 by default (while loading the page). I am handling this in PHP, JS

if given http://www.example.com/index.html#tab2, this should enable the tab2 by default (while loading the page). I am handling this in PHP, JS

in JS when I give window.location, it gives all the string after # too, but this is not happening in PHP

Reproduce code:
---------------
<?PHP
//assuming browser has opened the url: http://www.example.com/index.html#tab1
echo $_SESSION[ 'QUERY_STRING' ];
?>

Expected result:
----------------
#tab1

Actual result:
--------------
NULL value

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-12-17 15:45 UTC] jani@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.


 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Fri Mar 27 05:00:01 2026 UTC