Click to See Complete Forum and Search --> : [RESOLVED] i can't make a filename.php#anchor work


teddybaz
07-01-2009, 11:21 PM
hi all,
i know very little about php -- hence the newbie title -- but i've searched the forum and can't find an answer to my problem.

in file howTo.php, i have a link
<a href="howToExpanded.php#setup">

in file howToExpanded.php, there is an anchor
<a name="setup">

old threads in the forum says this should work, but it's not.
can you please tell me what i'm doing wrong?

here are the pages where this is happening:
http://www.tedbaz.net/egencia/TMRC/Build/howto/howTo.php
http://www.tedbaz.net/egencia/TMRC/Build/howto/howToExpanded.php

thanks for your help!
teddy b

bradgrafelman
07-02-2009, 12:48 AM
This has nothing to do with PHP (since PHP doesn't even know what a named anchor is, let alone how to link to one) and everything to do with your clientside code.

Specifically, it's the Javascript that's breaking the link; disabling Javascript allows the link to work properly.

teddybaz
07-02-2009, 01:00 AM
OMG! you are GENIUS!
i took the script off that page and now it works.
i would never have figured it out in a million years!

thanks so much!!!