This is my code
Code: Select all
<?PHP
$page=$_GETї"page"];
switch ($page)
{
/*
The following section determines what will be viewed on the page that is accessed
the $title value containes the main title for the page
the $script contains the text. Script can be edited to include files
*/
case "main":
$title="Welcome";
$script="Hello ciaran, murphy that is, howe are you";
break;
case "forums":
$title="Forums";
$script="forums_on=true";
break;
default:
$title="Welcome";
$script="";
}
?>and this is the problem
This points to the $page=$_GET["page"]; lineNotice: Undefined index: page in e:\inetpub\wwwroot\class of 04\index.php on line 2
Strange thing is, I setup the site online and it worked fine. I set up php on my PC today, and I get this.