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;
}
?>
Written by Ali Haris
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#N
Authors
Related Tags
#n
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#