I am trying to get the variable from my form but it gives me nothing, i also did var_dump of post and it shows me that the array is 0 so the form isn't sending data. I tried so many things but i think i have some kind of bug or my installtion wasn't good. The softwares i am currently using is WampServer, PHP version 7.0.10 and PHPStorm on windows 10.
<html>
<head lang="en">
<meta charset="UTF-8">
</head>
<body>
<!-- language: PHP -->
<?php
if(isset($_POST['age'])) {
$varKapitaal = $_POST['age'];
echo $varKapitaal;
}
?>
<h1>Fill in the form</h1>
<form method="POST" action="">
<p>age:</p>
<input type="text" name="age">
<input type="submit" name="submit">
</form>
</body>
</html>