i try to change this scrip into jsp but i stuck at switch statement - switch ($_GET.. Please someone help me.. (T_T)
menu.php
<li><a href="index.php?action=home">Home</a></a></li>
<li><a href="index.php?action=aboutus">About Us</a></a></li>
index.php
<td width="20%" valign="top">
<?php include ('menu.php'); ?>
</td>
<td width="85%" valign="top">
<?php
switch ($_GET['action']){
case 'aboutus':
include 'aboutus.php';
break;
case 'home':
include 'home.php';
break;
default:
include 'home.php';
}
?>