Learn to Create PHP Includes for Your Website

Dynamic Navigation Include


Navbar Include



Navbar Include
  1. Cut out the navbar div and paste it into a new document, then save it as navbar.php.

  2. Add the dynamic PHP code on the left between the "a" and "href" HTML code for each li in the navigation. Insert the page titles where they are called for.

  3. Insert the navbar.php Include into index.php and any other pages you will be creating.