PDA

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


magees
07-05-2006, 12:49 PM
Hi,

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?

davidj
07-05-2006, 03:12 PM
page1.php#section1