
php get file
By: a guest on
Aug 23rd, 2012 | syntax:
PHP | size: 1.13 KB | hits: 10 | expires: Never
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Prodigy Doo Design</title>
<link href="template/style.css" rel="stylesheet" type="text/css" />
</head>
<?php
if(isset($_REQUEST['file'])){
$filename=$_REQUEST['file'];
}
else{
$filename = "home";
}
?>
<body>
<?php include('template/header.php'); ?>
<div class="pad50px900wide"><!--Padding after headder--></div>
<?php // include('template/nav.php'); ?>
<!--*****************************
********* BODY CONTENT***********
******************************-->
<div class="bodyContent">
<?php include ($filename.".php"); ?>
<?php include ($filename.".php"); ?>
</div>
<div class="bodyContent">
<a href="index.php?file=about">About</a>
<a href="index.php?file=home">Home</a>
</div>
<!--*****************************
******END OF BODY CONTENT********
******************************-->
<?php include('template/footer.php'); ?>
</body>
</html>