I created two inputs for name and age and when the user clicks on submit, the screen has to display the values he entered in the two inputs but it does nothing.. here are my codes
<html>
<head></head>
<body>
<?php
if(isset($_POST['submit'])){
$name=$_POST['name'];
$age=$_POST['age'];
echo $name;
echo $age;
}
?>
<form action="" method="post">
<input type="text" name="name" placeholder="name"></br>
<input type="number" name="age" placeholder="age"></br>
<input type="submit" name="submit" value="submit">
</form>
</body>
</html>