l205/PHP/H5P2.phpserver/Opdrachten/H11/11.2.php

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> </head> <body> <?php $age = $_GET['age']; $class= $_GET['class'] ; $contr = contributie($age, $class); echo "De contributie is $contr"; function contributie($leeftijd, $klasse){ $c = 200 + $leeftijd * 2 - $klasse * 3; return $c; } ?> </body> </html>

Resultaat

Made by Thijs Aarnoudse