Re: anchor and get var in url...
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: anchor and get var in url...

From: ToMeK <t_mih@hotmail.com>
Date: Tue Oct 04 2005 - 18:50:40 CEST

"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)
> >
> > anchor1
> > ...
> > <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...
> >
> >
Received on Tue Oct 18 02:31:46 2005