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
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..
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.