Re: anchor in php page
| From: | Ivo Fokkema | Date: | Tue, 29 Jul 2003 14:05:18 +0000 |
| Subject: | Re: anchor in php page | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-157313@lists.php.net to get a copy of this message | ||
Hi Tony,
I think no server-side application had any effect on the viewing position on
the page, it's totally client side. To use this anyway, you could do this in
PHP :
<?php
if ($_GET['go']) {
header("Location: http://" . $_SERVER['HTTP_HOST']
. $_SERVER['PHP_SELF']
. "#" . $_GET['go']);
exit;
}
//rest of your code
?>
This code detects the availability of a '?go=...' variable and refreshes
itself with the given position.
'test.php?go=here' will reload to 'test.php#here'.
Sorry if this is not what you need.
Ivo
"Anthony Ritter" <tony@gonefishingguideservice.com> wrote in message
news:20030729133822.19620.qmail@pb1.pair.com...
> Ivo:
> > Why not use :
> > www.thesite.com/thepage.asp#here
> .........................
>
> Thank you Ivo.
>
> I don't usually use asp but was wondering if the word "go" in asp like:
>
> www.thesite.com/thepage.asp?go=here
>
> is a _reserved_ word in .asp which acts like the symbol "#" - serving as
> the
> anchor.
>
> And if one can achieve this using php.
>
> Thank you.
> TR
>
>
>