Hello, I was wondering if anybody could help me with the following errors:
Notice: Undefined index: page in C:\xampp\htdocs\slkweb\bukapage.php on line 2
The code for the page is as follows:
<?php
$page=$_GET['page'];
switch($page){
default : if(!file_exists ("home.php"))
die ("page 'home' not found !!");
include "home.php";
break;
case "login" : if(!file_exists ("login_periksa.php"))
die ("page 'check login' not found !!");
include "login_periksa.php";
break;
case 'laphar' : if(!file_exists ("Lap_Har_24.php"))
die ("page 'Laporan Harian' not found !!");
include "Lap_Har_24.php";
break;
case 'inputdata24' : if(!file_exists ("input_har_24.php"))
die ("page 'Input Data' not found !!");
include "input_har_24.php";
break;
case 'assetmapping':if(!file_exists ("Ass_Mapp.php"))
die ("page 'Asset Mapping' not found !!");
include "Ass_Mapp.php";
break ;
case 'update':if(!file_exists ("Ass_Mapp_Update.php"))
die ("page 'update status asset' not found !!");
include "Ass_Mapp_Update.php";
break ;
case 'gb' :if(!file_exists ("Guestbook.php"))
die ("page 'Guest Book' not found !!");
include "Guestbook.php";
break;
case 'gbview' :if(!file_exists ("Guestbook_view.php"))
die ("page 'view guest book' not found !!");
include "Guestbook_view.php";
break;
case 'gbsave' :if(!file_exists ("Guestbook_save.php"))
die ("page 'guest book save' not found !!");
include "Guestbook_save.php";
break;
case 'galery' :if(!file_exists ("Galery.php"))
die ("page 'Galery' not found !!");
include "Galery.php";
break;
case 'help' :if(!file_exists ("help.php"))
die ("page 'help' not found !!");
include "help.php";
break;
case 'profil' :if(!file_exists ("profil.php"))
die ("page 'profil' not found !!");
include "profil.php";
break;
}
?>
when i load index.php error message appear
If you need more information, Please ask. Thanks!