I have the following input code that I want the user to key in his year of birth. My lecturer has asked me to use textbox for the user to put in the year of birth, date and
Cast the variable to an integer:
$year = (int) $_POST['year'];