So I have a page where:
-the address is:http://mydomain.com/index.php?page=submit
-on index.php I have this include:
<?php include"pages/".$page.".php" ?>
-submit is just a simle form that submits info to my database but if I click the submit button then the variable “page” that I set up in the address bar disapears so I get this error:
Warning: main(pages/.php): failed to open stream: No such file or directory in /home/www/mydomain.com/index.php on line 98
**Warning**: main(): Failed opening 'pages/.php' for inclusion (include_path='.:/usr/local/lib/php') in **/home/www/mydomain.com/index.php** on line **98
** Thanks for any help