Advertisement
Tyler_

example

Dec 28th, 2013
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.52 KB | None | 0 0
  1. <?php
  2.     include("pages/header.php");
  3.  
  4.     if($_GET['page'])
  5.     {
  6.         switch($_GET['page'])
  7.         {
  8.             case 'price_guide':
  9.             {
  10.                 include("pages/price_guide.php");
  11.                 break;
  12.             }
  13.  
  14.             case 'about_us':
  15.             {
  16.                 include("pages/about_us.php");
  17.                 break;
  18.             }
  19.  
  20.             case 'social_networking':
  21.             {
  22.             include("pages/social_networking.php");
  23.             break;
  24.             }
  25.  
  26.             case 'contact_us':
  27.             {
  28.                 include("pages/contact_us.php");
  29.                 break;
  30.             }
  31.  
  32.             default:
  33.             {
  34.                 include("pages/error.php");
  35.                 break;
  36.             }
  37.         }
  38.     }
  39.     else
  40.     {
  41.         include("pages/home.php");
  42.     }
  43. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement