You are here: Re: Fragment identifier (#...) « All PHP « IT news, forums, messages
Re: Fragment identifier (#...)

Posted by J.O. Aho on 11/20/06 08:50

Christoph Burschka wrote:
> Named anchors allow links to point directly at certain paragraphs of a
> page using a fragment identifier in the URL (the bit that follows "#")
>
> I know that this is processed on the browser side - but is it possible
> to access this parameter on the server at all, or is it simply not
> transmitted by the browser?
>
> I need to set a 301 redirect to a different page, and I would like to
> preserve the fragment identifier in the new URL if that's possible...

$_SERVER['REQUEST_URI'] will give you the requested url, and with a bit
testing it seems like the #SOMETHING is browser side thing and isn't part of
the request and therefore you can't get that part.


//Aho

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация