Last Updated: February 25, 2016
·
406
· haris

Simple PHP Website

<?php

// If page is not defined, goes to Home
$GET['page'] = (empty($GET['page)) ? 'home' : $_GET['page'];

switch ($_GET['page'])
{
case 'home':
echo "Hello. This is a homepage.";
break;

case 'about':
    echo "Hello. We are a group of engineers.";
break;

}

?>