add ajax to found form

This commit is contained in:
/jedi/ 2018-12-30 13:26:45 +01:00
parent df470b370f
commit 935d48f6f7
3 changed files with 36 additions and 4 deletions

View file

@ -29,7 +29,7 @@ switch($_GET["action"]) {
$errormsg = "all values have to be set";
}
break;
case "insert":
case "add_found":
if (hasval($_POST["was"]) && hasval($_POST["wann"]) && hasval($_POST["wo"])) {
/* Prepared statement, stage 1: prepare */
if (!($stmt = $mysqli->prepare("INSERT INTO items(was, wann, wo) VALUES (?, ?, ?)"))) {