i am using
<? include"$page.html" ?> function on my website, so i can display dynamic ontent in one page.
I have only 1 page with templates and the contents are saved in html file.
so, if i want to display the contents from the message.html, i use
http://www.mysite.com/index.php?page=message
but when i live the $page vaiable blank, example http://www.mysite.com/index.php?page=
i am getting an error message like the one below
Warning: main(.html): failed to open stream: No such file or directory in /home/ourtamil/public_html/test/MA/index.php on line 87
What i want to do is, i want to display teh contents from home.html when ever the $page vaiable is left blank.
So, can anyone help me??? 🙂