I wrote a very simple PHP code to post a webpage in a small invisible iframe as prompted by clicks. This is my code:
Code:
<ilayer name="nscontainer" width=554>
<layer name="nscontent" width=554 visibility=hidden>
<!—Content goes here-->
<?php include ("$page"); ?>
<!—Stop content here-->
</layer>
</ilayer>
And this is the error I get when I visit a webpage under the "root" (example: index.php?page=index.htm) :
Warning: include() [function.include]: Filename cannot be empty in...(root) on (line)
Warning: include() [function.include]: Filename cannot be empty in...(root) on (line)
Warning: include() [function.include]: Failed opening '' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in....(root) on (line)
Any suggestions to fix this problem? I'm sure it's very simple but I'm just overlooking it. Maybe a better code to use instead of this one?
Thanks
Any suggestions?