stobbo
10-29-2006, 10:26 PM
Hello.
I am fairly new to PHP, and am struggling over a error. Any help would be kindly appriciated.
Error:
Notice: Undefined index: id in c:\home\********\public_html\index.php on line 3
Code
<?php
include("/home/********/public_html/modules/template-top.php");
$page= $_GET['id'];
if(file_exists("/home/********/public_html/content/".$page.".php"))
{
include("/home/********/public_html/content/".$page.".php");
}
else
{
include("/home/********/public_html/modules/news.php");
}
include("/home/********/public_html/modules/template-bottom.php");
?>
If you can help, I would be most pleased.
Thanks, Stobbo.
I am fairly new to PHP, and am struggling over a error. Any help would be kindly appriciated.
Error:
Notice: Undefined index: id in c:\home\********\public_html\index.php on line 3
Code
<?php
include("/home/********/public_html/modules/template-top.php");
$page= $_GET['id'];
if(file_exists("/home/********/public_html/content/".$page.".php"))
{
include("/home/********/public_html/content/".$page.".php");
}
else
{
include("/home/********/public_html/modules/news.php");
}
include("/home/********/public_html/modules/template-bottom.php");
?>
If you can help, I would be most pleased.
Thanks, Stobbo.