if ($_POST['action'] == 'Save') { if (isset($_POST['hdIdAct'])) { if ($_POST['hdIdAct'] == "") { $newSche->save($_POST['hdIdUser'], $_POST['hdDate'], $_POST['scheDet']); $scheAdd = true; } else { $newSche->open($_POST['hdIdAct']); $newSche->save($_POST['hdIdUser'], $_POST['hdDate'], $_POST['scheDet']); $scheUpd = true; } } } if ($_POST['action'] == 'Delete') { if (isset($_POST['hdIdAct'])) { $newSche->open($_POST['hdIdAct']); $newSche->del(); $scheDel = true; } } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <link rel="shortcut icon" href="../img/icon.png"> <title>Schedule | FOLearn</title> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="description" content="" />