$y = $_REQUEST["y"]; } if (isset($_REQUEST["m"])) { $m = $_REQUEST["m"]; } if (isset($_REQUEST["d"])) { $d = $_REQUEST["d"]; } if (($result = check_params($y, $m, $d)) !== true) { $error = $result; } else { $year = $y; $month = $m; $day = $d; } $item = $dbh->get_schedule($year, $month, $day); ?> <html> <head> <title>Schedule</title> <meta http-equiv=content-type content="text/html; charset=UTF-8"> </head> <body> <?php if (isset($error)) { echo "<p>{$error}</p>"; } ?> <h1><?php echo $year; ?>