Advertisement
Guest User

php get file

a guest
Aug 23rd, 2012
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.13 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>Prodigy Doo Design</title>
  6. <link href="template/style.css" rel="stylesheet" type="text/css" />
  7. </head>
  8. <?php
  9. if(isset($_REQUEST['file'])){
  10.         $filename=$_REQUEST['file'];
  11. }
  12. else{
  13.         $filename = "home";
  14. }
  15. ?>
  16. <body>
  17.  
  18.  
  19. <?php include('template/header.php'); ?>
  20. <div class="pad50px900wide"><!--Padding after headder--></div>
  21. <?php // include('template/nav.php'); ?>
  22.  
  23.  
  24. <!--*****************************
  25. ********* BODY CONTENT***********
  26. ******************************-->
  27. <div class="bodyContent">
  28. <?php include ($filename.".php"); ?>
  29. <?php include ($filename.".php"); ?>
  30. </div>
  31. <div class="bodyContent">
  32. <a href="index.php?file=about">About</a>
  33. <a href="index.php?file=home">Home</a>
  34. </div>
  35. <!--*****************************
  36. ******END OF BODY CONTENT********
  37. ******************************-->
  38.  
  39. <?php include('template/footer.php'); ?>
  40.  
  41. </body>
  42. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement