You are here: Re: anchor and get var in url... « PHP Programming Language « IT news, forums, messages
Re: anchor and get var in url...

Posted by tomek on 11/24/08 11:28

no... still nothing...

"JDS" <jeffrey@example.invalid> wrote in message
news:pan.2005.10.04.17.21.26.694232@example.invalid...
> On Tue, 04 Oct 2005 18:50:40 +0200, ToMeK wrote:
>
>> "Dikkie Dik" <nospam@nospam.org> wrote in message
>> news:dhuaff$i2i$1@news.cistron.nl...
>>> Does index.php#anch1?page=aboutus.php work?
>>
>> hm.. no, I think it's because, anchor is on aboutus.php page...
>>
>> this looks like this:
>> [index.php]
>> ========
>> <html><body>
>> <!-- header menu-->
>> <a href="<?php echo $_server['php_self'];?>?page=aboutus.php"> load
>> aboutus
>> page</a>
>>
>> <?php include $_GET['page']; ?>
>> </body></html>
>>
>> [aboutus.php]
>> =========
>> <a href="#anch1">go to anchor1</a>
>> bla bla... content
>> <a name="anch1></a>here's contet under anchor1
>> bla bla... content
>>
>> now, when i click on link in index.php page, it loads aboutus.php page
>> correctly, but then this anchor link in aboutus.php page doesn't work
>> (only
>> in IE, in FFit works)
>
> Encode the pound sign (#) as an html entity:
>
>> <a href="<?php echo $_server['php_self'];?>?page=aboutus.php%23"> load
>
> Note the "%23" added to the above URL
>
>> aboutus
>
> --
> JDS | jeffrey@example.invalid
> | http://www.newtnotes.com
> DJMBS | http://newtnotes.com/doctor-jeff-master-brainsurgeon/
>

 

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

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