truenitin Posted July 5, 2006 Share Posted July 5, 2006 hiiii tried a lot but i am still gettting this errorUndefined index: page in c:\program files\easyphp1-8\www\index.php on line 8i tried using an if statement but then also i get the errormy lines of code are <?php$page=$_GET['page']; =======error point if (!$page) $page = "";$content_file=$_SERVER["DOCUMENT_ROOT"]."/".$page.".php";echo $content_file;$title = ($page) ? "$page - My Site!" : "Main page - My Site!";include("header.php");//include($content_file);include("footer.php");?>Someone please explain to me what does $_get does????Nitin Link to comment https://forums.phpfreaks.com/topic/13723-undefined-index-page-in-cprogram-fileseasyphp1-8wwwindexphp-on-line2/ Share on other sites More sharing options...
truenitin Posted July 5, 2006 Author Share Posted July 5, 2006 ok i solved the problem by using isset but now i am having another problem when i run the page it goes into a loop and end with standard error that page cannot be displayedit is something like this if i comment the line $content_file it works otherwise it goes in loopNitin what is the behaviour of the server.... Link to comment https://forums.phpfreaks.com/topic/13723-undefined-index-page-in-cprogram-fileseasyphp1-8wwwindexphp-on-line2/#findComment-53258 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.