You are here: Link, name, parameter and anchor « HTML « IT news, forums, messages
Link, name, parameter and anchor

Posted by Maxime on 03/19/07 14:56

Hello everybody !

Here is my problem. I want to create a HTML link to another page, to a
specified place in the target page. I do this using this code :
source page : <a href="target_page.html#position>link</a>
target page : <a name="position"></a>
And it works, when clicking on "link" in the source page, the target page
opens and the anchor "position" is placed on top of the page. Right.

But now I have to do the same with a target page (in PHP) with a parameter.
The target URL is then "target_page.php?parameter=xxx" but how do I specify
the anchor ? Using <a href="target_page.php#position?parameter=xxx>link</a>
doesn't work.

I tried using the "name" tag as this :
source page : <a href="target_page.html" name="position">link</a>
target page : <a name="position"></a>
But it doesn't work, the target page opens but stays in top of the page...
Is it possible to use the "name" tag when adressing to another page ? If
yes, why does my code doesn't work ?

Do anyone has an idea to help me ?

Thanks.

 

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

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