in php page, there is some conent and in this page, i also need to includes file:
but i have a list of files and i put the file names in an array: (please see the code )
i want to put two buttons in the page, one for forward, the other for backward. each time when user click on button, it will include a different file.
any suggestion for how to implement this? a simple code will be greatly appreciated! thanks a lot!
$pages = array("content/home_01.php","content/home_02.php","content/home_03.php","content/home_04.php","content/home_05.php");
$page = $pages;?>
<?php includes ('./folder/file1.php') ?>.