[PHP] Re: anchor in php page

2003-07-29 Thread Ivo Fokkema
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 :

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" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> 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
>
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: anchor in php page

2003-07-29 Thread Comex
>  is a _reserved_ word in .asp which acts like the symbol "#" - serving as
> the
> anchor.

Are you sure?  ASP is a server-side language, it would have to output HTML
to go to the anchor, and I don't think there /is/ any such html.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: anchor in php page

2003-07-29 Thread Anthony Ritter
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




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: anchor in php page

2003-07-29 Thread Ivo Fokkema
"Anthony Ritter" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I am trying to access a page published on a server - and then using an
> anchor - to jump to a specific paragraph on that page.
>
> For instance, if using asp, I could write:
> www.thesite.com/thepage.asp?go=here
>
> where "here" -the value - in the string query would be marked up as:
> ...
> // thepage.asp
>
> 
> blah,blah,blah, etc...
> 
> ...
>
> Can this be done using php?
Why not use :
www.thesite.com/thepage.asp#here

?

--
Ivo Fokkema
PHP & MySQL programmer
Leiden University Medical Centre
Netherlands



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php