<!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>
Made by Thijs Aarnoudse