Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trouble creating a "named anchor" to a PHP page. 1

Status
Not open for further replies.

ggordon

Programmer
Sep 15, 2003
45
I have a website where I'm trying to create a named anchor back to the index.php page. (Both files are in the same folder.)

The link looks like:

<a href="index.php#namedanchor">Go</a> and is on a page called register.php.

Then, on index.php there is a named anchor that says:

<a name="namedanchor"></a>

But .. the link (when I click on it) only takes me to the index.php page .. but doesn't find the named anchor at <a name="namedanchor"></a>.

I wanted to know if since this is a php page .. does it get handled differently? Or what could be causing this issue.

Thanks,
Gary


Gary M. Gordon
 
There's nothing between your anchor tags Gary. Put something in there and it should work fine.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top