l211/leren.php
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<?php
// $i = 0;
// function Berekenen($Dagen,$Uren,$Minuten,$Seconden){
// return ((($Dagen * 24) * pow(60,2)) + $Uren * pow(60,2) + ($Minuten * 60) + $Seconden);
// }
// $Fahrenheit = Berekenen(4,3,30,30);
// echo("<div> $Fahrenheit <div>");
// // while ($i<10){
// // $i++;
// // $kwadraat = pow($i,2);
// // echo("<div>Het kwadraat van $i = $kwadraat</div>");
// // };
// function yeah($Strin){
// echo str_ireplace("<p>","<div>",$Strin);
// };
// if ($_GET["City"] && $_GET["HoofdStad"]) {
// $Array = array(
// $_GET["City"] => $_GET["HoofdStad"],
// );
// foreach ($Array as $Land => $Hoofdstad){
// echo ( "<div> Hoofdstad van $Land is $Hoofdstad <div>" );
// }
// }
?>
<!-- <form method='get' action ='leren.php'>
<input type = 'text' name = "HoofdStad">
<input type = 'text' name = "City">
<input type='submit' value='Posten'>
</form> -->
<?php
if ($_GET["aap"]){
$naam = $_GET["aap"];
echo("Yeah je bent een vieze monkey $naam");
}
?>
<form action="leren.php" method="get">
<input type ='text' name= 'aap'>
<input type ='submit' value ='posten'>
</form>
</body>
</html>
Resultaat
Made by Thijs Aarnoudse