"Anchor Collector"
| From: | Kris Yates | Date: | Tue, 08 Jul 2003 15:28:17 +0000 |
| Subject: | "Anchor Collector" | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-154383@lists.php.net to get a copy of this message | ||
http://192.168.0.1/index.php?DSE=matrix&access=31337#herd
1. Grab the Anchor reference "herd" from the fake URL above and store
it as a variable using PHP.
You already know the facts...
QUERY_STRING: DSE=matrix&access=31337
REQUEST_URI=/index.php?DSE=matrix&access=31337
HTTP Request: Get /index.php?DSE=matrix&access=31337
PHP_SELF=/index.php
_REQUEST["DSE"]: matrix
_REQUEST["access"]: 31337
and same for _SERVER vars per normal PHP operation.
So, does anyone have any ideas? I was just going to ereg and parse it out to a variable but
PHP cant 'grab' the anchor passed as part of the URI requested. According to what I have found, browsers dont send the anchor in the URI but use the anchor "locally" within the page.
This is okay, except when the index.php dynamically generates frames containing references to dynamically generated pages. I want to pass the anchor in one of the frames.
So far, my conclusion deems #1 impossible. I am hoping someone can prove me wrong.
Kristophari