$action = ""; if (isset($_GET["action"])) { $action = $_GET["action"]; } switch ($action) { case "gamertag": displayGamertag(); break; case "updateprofile": updateProfile(); echo "Profile updated. Gamertag:".getMyGamerTag(); break; case "help": displayHelp(); break; case "changelog": displayChangelog(); break; default: welcome(); break; } function displayHelp() { echo "
If you seek help with this application, please email its owner mavr1k@gmail.com
"; }