From 33613a85afc4b1481367fbe92a17ee59c240250b Mon Sep 17 00:00:00 2001 From: Sven Eisenhauer Date: Fri, 10 Nov 2023 15:11:48 +0100 Subject: add new repo --- .../Praktikum5_6/k-bestellung.php | 251 +++++++++++++++++++++ 1 file changed, 251 insertions(+) create mode 100644 Bachelor/Entwicklung webbasierter Anwendungen/Praktikum5_6/k-bestellung.php (limited to 'Bachelor/Entwicklung webbasierter Anwendungen/Praktikum5_6/k-bestellung.php') diff --git a/Bachelor/Entwicklung webbasierter Anwendungen/Praktikum5_6/k-bestellung.php b/Bachelor/Entwicklung webbasierter Anwendungen/Praktikum5_6/k-bestellung.php new file mode 100644 index 0000000..092993b --- /dev/null +++ b/Bachelor/Entwicklung webbasierter Anwendungen/Praktikum5_6/k-bestellung.php @@ -0,0 +1,251 @@ +getname(); + if ($tmpPizName == $name) + $tmpNr=$aktPizza->getnummer(); + } + $adr = $_POST['kunde_adresse']; + $sid = session_id(); + $now = time(); + $insert = "INSERT INTO t_bestellung(PizNr,Lieferadresse,SessionID,Zeitpunkt,Zustand) VALUES($tmpNr,'$adr','$sid','$now','bestellt')"; + //echo $insert."\n"; + mysql_query($insert) or die('Query failed: ' . mysql_error()); + } + } + } +?> + + + + + + Kunde (Bestellung) + + + + + +

Kunde (Bestellung) +

+
+ + + +
+ + + onsubmit="return checkAddr();" method="POST" id="bestellung"> + + + + + + +
+ + + getname(); + $tmpPreis = $aktPizza->getpreis(); + $tmpBild=$aktPizza->getbild(); + echo "\n"; + echo "\n\n"; + } + ?> + +
\"$tmpName\"$tmpName"; + echo $tmpPreis; + echo " €
+
+ + + + + + + + + + + + + + + + + + + +
Warenkorb +
+ + +
+

Gesamtpreis:

+
+ +
0.00 €
+
+ +
+ + + +
+
+ + + \ No newline at end of file -- cgit v1.2.3