receive get route $route = isset($_GET["route"])? $_GET["route"] : null; /* if (isset($_GET["route"])) { $route = $_GET["route"] } else { $route = null; } */ if ($route=="helloworld") { $ctr = new AuthController(); $ctr->helloWorld(); exit(); } if ($route=="displayConnForm") { $ctr = new AuthController(); $ctr->displayConnForm(); exit(); } if ($route=="handleConnForm") { $ctr = new AuthController(); $ctr->handleConnForm($pdo); exit(); } echo"UNKNOWN ROUTE ALERT ALERT ALERT";