<?php
// Set the current year as a constant
define('CURRENT_YEAR', 2022);
// Get the user's birth year from the form input
$birth_year = $_POST['birth_year'];
// Calculate the user's age
$age = CURRENT_YEAR - $birth_year;
// Print the age to the screen
echo "Your age is: $age";
?>