centralize html menu with includes
centralize html menu with includes
Out of context: Reply #4
- Started
- Last post
- 11 Responses
- Nairn0
- Save the snippet of code you want, sans headers of any kind as 'menu.php' or whatever.
- layout your page, saved with a '.php' extension.
- where you want the snippet of code included write:
<?php include('./menu.php'); ?>
- save file, then view via a php server (so not just on your local PC, if it's not got something like Xampp running!)