<html> <head></head> <body> <div id....> ////coś tam .... przyciski itd </div> <div id="tresc" > <?php include("strony/glowna.html"); } if($_GET['id']=="kalendarz"){ include("strony/kalendarz.html"); } if($_GET['id']=="regulamin"){ include("strony/regulamin.html"); } itd.. ?> </div> </body> </html>
mam stronę wyglądającą mniej więcej tak jak ją włączam poprzez localhost/html/index.html to włącza się index.php?id=glowna czyli tak jak powinno ale wtedy na stronie oprócz treści pojawia sie informacja :
"
Notice: Undefined index: id in C:\xampp\htdocs\html\index.php on line 82
Notice: Undefined index: id in C:\xampp\htdocs\html\index.php on line 86
Notice: Undefined index: id in C:\xampp\htdocs\html\index.php on line 90
Notice: Undefined index: id in C:\xampp\htdocs\html\index.php on line 93
itd...
"
a w tych liniach mam ify np. -> if($_GET['id']=="kalendarz") itd, strony oczywiście się normalnie wczytują itd. a błąd ten wyskakuje tylko wtedy jak właczę index.php jak juz dam ?id=glowna lub klikam podstrony to nie wyświetla się już ta "notatka" , dlaczego tak jest ?