Bis 5c)
This commit is contained in:
12
M2/Beispiele/m2_5a_standardparameter.php
Normal file
12
M2/Beispiele/m2_5a_standardparameter.php
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Praktikum DBWT. Autoren:
|
||||||
|
* Şafak, Hazinedar, 3108590
|
||||||
|
* Robert, Joel,
|
||||||
|
*/
|
||||||
|
|
||||||
|
function addieren(int $number1,int $number2=0){
|
||||||
|
return $number1+$number2;
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
13
M2/Beispiele/m2_5b_include.php
Normal file
13
M2/Beispiele/m2_5b_include.php
Normal 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);
|
||||||
|
?>
|
||||||
29
M2/Beispiele/m2_5c_addform.php
Normal file
29
M2/Beispiele/m2_5c_addform.php
Normal 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>
|
||||||
Reference in New Issue
Block a user