It’s not recognized because you don’t create it. Variables don’t magically appear in PHP1. You need to get that value from the $_POST
superglobal:
<HTML>
<BODY>
<?PHP
$age = $_POST['age'];
print ("The age is: $age");
?>
</BODY>
</HTML>
1 Anymore. They used to when register_globals existed. But that has been obsolete since long before you started coding.