This commit is contained in:
Robert
2023-11-05 23:25:53 +01:00
parent 7d4ec262a5
commit fddeba1ce8
3 changed files with 54 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
<?php
/**
* Praktikum DBWT. Autoren:
* Şafak, Hazinedar, 3108590
* Robert, Joel,
*/
function addieren(int $number1,int $number2=0){
return $number1+$number2;
}
?>

View File

@@ -0,0 +1,13 @@
<?php
/**
* Praktikum DBWT. Autoren:
* Şafak, Hazinedar, 3108590
* Robert, Joel,
*/
include "m2_5a_standardparameter.php";
echo addieren(2,3)."<br>";
echo addieren(50,10)."<br>";
echo addieren(-2,3);
?>

View File

@@ -0,0 +1,29 @@
<?php
/**
* Praktikum DBWT. Autoren:
* Şafak, Hazinedar, 3108590
* Robert, Joel,
*/
?>
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8"/>
<title>Addform</title>
<style>
* {
font-family: Arial, serif;
}
.rating {
color: darkgray;
}
</style>
</head>
<body>
<label for="Zahl1">Erste Zahl:</label>
<input id="Zahl1" type="text" name="Zahl1">
<label for="Zahl2">Zweite Zahl:</label>
<input id="Zahl2" type="text" name="Zahl2">
</body>
</html>