index.php
<!DOCTYPE html>
<html>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″>
<p>Đây là trang chủ</p>
</head>
<body>
<div method=get action=”trang.php”>
<ul>
<li><a href=”” name=index>Trang Chủ </a></li>
<li><a href=”” name=ab>Giới Thiệu </a></li>
<li><a href=”” name=ser>Dịch Vụ</a></li>
</ul>
</div>
</body>
</html>
action
<?php
$index = $_GET[“index”];
$ab = $
$ser = $_GET[“ser”];
$nar = array($index, $ab, $ser);
switch($nar) {
case ‘index’:
include(“./index.php”);
break;
case ‘ab’:
include(“./about-us.php”);
break;
case ‘ser’:
include(“./service.php”);
break;
}
?>