From fd53858f16a40c25e60b9b6f7e13116f3bd9d785 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Sch=C3=BCler?= Date: Wed, 15 Oct 2025 12:09:10 +0200 Subject: [PATCH] Exx 15 - 17 --- Aufgabe_15/index.php | 48 +++++++++++++++++++++++++++++++++++++++++++- Aufgabe_16/index.php | 39 ++++++++++++++++++++++++++++++++++- Aufgabe_17/index.php | 39 ++++++++++++++++++++++++++++++++++- 3 files changed, 123 insertions(+), 3 deletions(-) diff --git a/Aufgabe_15/index.php b/Aufgabe_15/index.php index 5b2645a..e5e055c 100644 --- a/Aufgabe_15/index.php +++ b/Aufgabe_15/index.php @@ -1 +1,47 @@ - \ No newline at end of file + + +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +Leider wurden Daten falsch oder nicht eingegeben :(

"; + exit(); +} + +$name = $_POST["name"]; +$username = $_POST["username"]; +$password1 = $_POST["password1"]; +$password2 = $_POST["password2"]; + +if($password1 != $password2) +{ + echo "

Leider stimmen die Passwörter nicht überein...

"; + exit(); +} + +echo "

Name: $name

"; +echo "

Username: $username

"; +echo "

Die Passwörter stimmen überein!

"; + + +?> \ No newline at end of file diff --git a/Aufgabe_16/index.php b/Aufgabe_16/index.php index 31acd0a..cc3bdcd 100644 --- a/Aufgabe_16/index.php +++ b/Aufgabe_16/index.php @@ -1 +1,38 @@ - \ No newline at end of file + + +
+ +
+ +
+ +
+ +
+ +
+ +"; + for($i = 0; $i < $höhe; $i++) + { + echo ""; + + for($j = 0; $j < $breite; $j++) + { + echo ""; + echo ""; + echo ""; + } + + echo ""; + } + echo ""; + +?> \ No newline at end of file diff --git a/Aufgabe_17/index.php b/Aufgabe_17/index.php index 1c7442b..5777a9a 100644 --- a/Aufgabe_17/index.php +++ b/Aufgabe_17/index.php @@ -1 +1,38 @@ - \ No newline at end of file + + +
+ +
+ +
+ +
+ +
+ +
+ + +Das kleinste gemeinsame Vielfache von $base1 und $base2 ist $temp1.

"; + $res1 = $temp1 / $base1; + $res2 = $temp1 / $base2; + echo "

Dabei wird $base1 x $res1 und $base2 x $res2 genommen.

"; + + +?> \ No newline at end of file