Forum Moderators: coopster
$page = $_GET['page'];
switch($page) {
case 'one':
include('/one.html');
break;
case 'two':
include('/two.html');'
break;
default:
include('/default_page.html');
}
Good luck! :)
<?php
echo"<table><tr><td>";
echo"<a href=\"?x=cd\">Change your details</a></td><td>";
echo"<a href=\"?x=cp\">Change your password</a></td><td>";
echo"<a href=\"?x=a\">Add items</a></td><td>";
echo"<a href=\"?x=dd\">Delete an item</a></td><td>";
echo"</tr></table>";
$x = $_GET['x'];
switch($x) {
default:
echo"default text";
break;
case 'cp':
include ("change_password.php");
break;
case 'cd':
include ("change_details.php");
break;
case 'a':
include ("add.php");
break;
case 'dd':
include ("display_delete.php");
break;
}
?>