Code:
$act= $_GET['act'];
switch($act) {
default: include('include/home.php');
break; case "reg": include('include/register.php');
break; case "login": include('include/login.php');
break; case "search": include('include/search.php');
break; case "about": include('include/about.php');
}
Bạn xem thử.