Il lun, 2004-03-15 alle 15:55, David T-G ha scritto:
> Sebastiano, et al --
>
> ...and then Seba said...
> %
> % I think that the only way to catch it is to rewrite the URL.
> %
> % 1)Write pages with appropriates links. Somethink like
> % href='www.yoursite.com/anchor_target/index.php'
>
> Hmm
Chris, et al --
...and then David T-G said...
%
% ...and then Chris Hayes said...
% %
...
% % maybe via a javascript detour?
%
% Can't do that since I'm trying to write code that can handle the old
% style call from some page that hasn't been updated, which means that I
% don't control it. All
Sebastiano, et al --
...and then Seba said...
%
% I think that the only way to catch it is to rewrite the URL.
%
% 1)Write pages with appropriates links. Somethink like
% href='www.yoursite.com/anchor_target/index.php'
Hmmm... Do you mean that I should write the calling page this way? I
can't
I think that the only way to catch it is to rewrite the URL.
1)Write pages with appropriates links. Somethink like
href='www.yoursite.com/anchor_target/index.php'
2)Create e rewrite rule in the htacces file.
3)Catch the target value from the php page parsing the rewritten URL
www.yoursite.com/i
: PHP General list
Cc: Tom Meinlschmidt
Subject: Re: [PHP] catching URL#target params
Tom, et al --
...and then Tom Meinlschmidt said...
%
% BACK BACK BACK. I'm a stupid fool ...
No you aren't, or that means I'm one for thinking the same thing.
Hmmm... That doesnt' lend a l
is possible to catch it by javascript, but I have no clue how to use with normal hrefs
(not forms)
try
alert(document.location);
and you'll get entrire request with #target part too.
/tom
--
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsu
Tom, et al --
...and then Tom Meinlschmidt said...
%
% BACK BACK BACK. I'm a stupid fool ...
No you aren't, or that means I'm one for thinking the same thing.
Hmmm... That doesnt' lend a lot of weight to your side :-)
%
% #something is NOT send to the server, so it's unable to track it ...
Chris, et al --
...and then Chris Hayes said...
%
% >but I haven't found any way to capture
% >
% > http://URL#target
...
% >Is there a var that will work for me?
%
% usually this part of the URL is handled by the browser and I have not find
% a way to get at this with PHP.
Ahhh... Bummer!
At 15:00 15-3-04, Tom wrote:
it could be done only by parsing $_SERVER['QUERY_STRING'] variable ...
nay, the hash value is not there
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
BACK BACK BACK. I'm a stupid fool ...
#something is NOT send to the server, so it's unable to track it ...
sorry
/tom
request was a.php?aasdf=1234a#greetz
and from apache log
someip - - [15/Mar/2004:15:01:37 +0100] "GET /~znouza/a.php?aasdf=1234a HTTP/1.1" 200
3325
On Mon, 15 Mar 2004 15:00:0
Tom, et al --
...and then Tom Meinlschmidt said...
%
% Hi,
Hi!
%
% it could be done only by parsing $_SERVER['QUERY_STRING'] variable ...
Well, that's what I thought of first, but I got nothing. To wit:
bash-2.05a$ lynx -dump wftst.web-folio.net/help.php#foo | egrep -i 'foo|query'
Q
but I haven't found any way to capture
http://URL#target
as one would use to jump to a certain location in a plain HTML file.
When I try this in a PHP file and run phpinfo, I see nothing that
includes that target.
Is there a var that will work for me?
usually this part of the URL is handled
Hi,
it could be done only by parsing $_SERVER['QUERY_STRING'] variable ...
eg
$querystring = $_SERVER['QUERY_STRING'];
eregi("#([a-z0-9_.-]*)", $querystring, $arg);
$hashtarget = $arg[1];
/tom
On Mon, 15 Mar 2004 08:52:43 -0500
David T-G <[EMAIL PROTECTED]> wrote:
> Hi, all --
>
> I know th
13 matches
Mail list logo