Create("churchil_demo"); if ($NewSeminar == "Yes") { # Make sure the user has picked something for the various # required variables. $error = 0; $error += RequiredVar("Location",$Location); $error += RequiredVar("Seminar Fee",$Fee); $error += RequiredVar("Attendance",$MaxAttend); $datetime = $When_year."-".$When_month."-".$When_day ." " . $When_hr.":".$When_min.":00"; if ($error == 0) { # Okey-dokey. We've got valid information. Stuff # it into the ol' database. $insert = "insert into ACME_Seminars values(0, '$datetime',". "$Location, '".AddSlashes($Fee)."', '". AddSlashes($Notes)."', 0, $MaxAttend)"; $sql->Insert($insert); echo("

Added Seminar

\n"); # Clear the values so that they won't repeat in the form below $datetime = ""; $Location = ""; $Fee = ""; $Notes = ""; $MaxAttend = ""; } } ?>
Add a New Seminar
When \n"); SelectTime("When",$time); ?>
Where
Seminar Fee
Maximum
Attendance
Notes