Jump to content

Anything similar to "A NAME=" in PHP?


Davka

Recommended Posts

I'm migrating a bunch of pages from an older website into a PHP-based site, and some of them have numerous A NAME html tags, creating links to various spots in the body of the page, such as footnotes and whatnot. Is there any way to replace these with a similar marker in PHP, short of the obvious-but-tedious route of making each section into its own separate page?

In case you've never tried it, using an A NAME link on a PHP-driven site doesn't work. The hash mark in the address causes errors every time.

Thanks in advance.
Link to comment
https://forums.phpfreaks.com/topic/36114-anything-similar-to-a-name-in-php/
Share on other sites

Perhaps I should elaborate. These pages are being pulled in as required pages inside a larger PHP container page.

IOW, "oldPage.html" is required by "newSite.PHP" and the browser address is "newSite.php?content=oldpage&navigation=blah"

This means that simply clicking on a link like A HREF="#foo" won't cut it, since there is no corresponding tag in newSite.php?content=oldpage&navigation=blah. And writing "newSite.php?content=oldpage.html#foo&navigation=blah" throws a real monkey wrench in the works..

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.