View Full Version : linking to different parts of page on site with PHP include

07-05-2006, 11:49 AM

Im designing a site using PHP include method to have a common banner and side navigation bar for all my pages.

My problem comes when I want to create a link to a different part of a page, called section 1, say. So I do <a name="section1">Section 1 </a>.

Normally with HTML, to create a link to this, you would go <a href="page1.html#section1>. But if page1 is called from a php file using PHP include, how do you implement this?

07-05-2006, 02:12 PM