|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-05-27 08:47 UTC] rasmus@php.net
[2003-05-27 09:09 UTC] MDonatas at centras dot lt
[2003-05-27 09:29 UTC] rasmus@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 13:00:02 2025 UTC |
I'll make it clear with 3 small webpages in my example on how to reproduce this bug. *******test1.php******** <html> <head> <title></title> </head> <body> <a href="test2.php">Go to test2.php</a> </body> </html> ************************ *******test2.php******** <?php header ("Location: test3.php?this=5&that=6#MyBookmark"); ?> ************************ *******test3.php******** <html> <head> <title></title> </head> <body> <?php var_dump ($HTTP_GET_VARS); ?> </body> </html> ************************ Now, first part of the test: Run test2.php so you would get redirected to test3.php OUTPUT in test3.php :: array(2) { ["this"]=> string(1) "5" ["that"]=> string(1) "6" } Everything is fine here, now second part of the test. Run test1.php and click on the link to go to test2.php and instantly get redirected to test3.php OUTPUT in test3.php :: array(2) { ["this"]=> string(1) "5" ["that"]=> string(12) "6#MyBookmark" } See, there is bookmark thingy attached at the end as if it is a part of my second variable sent over GET vie the link.