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/40 11:28

"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)

.....


> Best regards
>
> ToMeK wrote:
> > hi,
> > i'm including page in my index file with php's include... so lik to it
looks
> > like:
> >
> > index.php?page=aboutus.php
> >
> > now, problem is that i have in "aboutus" page few anchor points...
> >
> > how can i refer to that anchor points?
> >
> > when i use:
> >
> > (aaboutus.php)
> >
> > <a href="#anch1">anchor1</a>
> > ...
> > <a name="anch1> fsdfdsfdsfsdfddfsdfs </a>
> >
> > in FF it works, but in IE it doesn't...
> >
> > [ index.php?page=aboutus.php#anch1] doesn't work
> >
> > please help...
> >
> >

 

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

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