Hello every body here
I have a folder contain more than 6oo htm pages and I want to call them in one php file
I have this code working fine but this time failed to show the htm files.
This is the php code
<?php
if (!isset($_GET['p'])) { // If no page is chosen load this page
include("pages/main.htm");
}
else{
$filename="pages/" . $_GET['p'] . ".htm";
if (file_exists($filename)){
include("pages/" . $_GET['p'] . ".htm");
}
else{
include("pages/error.htm");
}
}
?>
I usually link to display htm pages as follow
example
index.php?p=100
and the htm page 100 from the the directory will be called and displayed
I do not why this time it is not working with me
please i need help ASA
or some one do for me new php code