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