Jak mogę najlepiej zrobić dynamiczne ładowanie stron? Na razie zrobiłęm tak:
<?php $site = ($_GET['site']); if($site == index) { include('index.inc.php'); } if($site == about) { include('about.inc.php'); } if($site == gallery) { include('gallery.inc.php'); } if($site == other) { include('other.inc.php'); } if($site == tests) { include('tests.inc.php'); } else { } ?>
Niestety on nie jest najlepszy
