메모
frame 좌측 여러개 메뉴에 우측에 나올 php를 결정하는 스크립트...펌
맘편한넘
2012. 7. 2. 21:59
index.php
<!DOCTYPE HTML>
<html>
<head>
<meta charset=utf-8">
<title>index</title>
</head>
<body>
<table width="100%" border="0">
<tr>
<td width="200">
<ul>
<li><a href="index.php?part=sub">메뉴</a></li>
<li><a href="index.php?part=sub2">이름</a></li>
<li><a href="index.php?part=sub3">태그</a></li>
<li><a href="index.php?part=sub4">뭐라</a></li>
</ul>
</td>
<td valign="top">
<?php
$part = $_GET["part"];
switch($part){
case "sub":
include "sub.php";
break;
case "sub2":
include "sub2.php";
break;
case "sub3":
include "sub3.php";
break;
case "sub4":
include "sub4.php";
break;
default:
include "main.php";
break;
}
?>
</td>
</tr>
</table>
</body>
</html>