#50507 [NEW]: Query String doesn't bring the value after #
| From: | m dot kathirav at gmail dot com | Date: | Thu, 17 Dec 2009 13:26:13 +0000 |
| Subject: | #50507 [NEW]: Query String doesn't bring the value after # | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-145848@lists.php.net to get a copy of this message | ||
From: m dot kathirav at gmail dot com
Operating system: Linux
PHP version: 5.3.1
PHP Bug Type: *General Issues
Bug description: Query String doesn't bring the value after #
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
--
Edit bug report at http://bugs.php.net/?id=50507&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50507&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50507&r=trysnapshot53
Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50507&r=trysnapshot60
Fixed in SVN: http://bugs.php.net/fix.php?id=50507&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50507&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=50507&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=50507&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=50507&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=50507&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=50507&r=support
Expected behavior: http://bugs.php.net/fix.php?id=50507&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=50507&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=50507&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=50507&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50507&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=50507&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=50507&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=50507&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=50507&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=50507&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=50507&r=mysqlcfg