$nav = explode("&", $_SERVER['QUERY_STRING']);
if(($_SERVER['REQUEST_METHOD'] == "GET") && ($nav[0] != ""))
include($nav[0].".php");
else if (($_SERVER['REQUEST_METHOD'] == "GET") && ($nav[0] == ""))
include("pages/home.php");
else if(($_SERVER['REQUEST_METHOD'] == "POST") && ($nav[0] == "submit"))
include("pages/submit.php");
else
include("pages/home.php");
?>
|
|