checkdate($month, $day, $year) all parameters must be integer (numbers).
<?php
$month = $input_month; // should be a number
$day = $input_day; // should be a number
$year = $input_year; // should be a number
if(checkdate($month, $day, $year))
{
echo 'Valid';
}
else
{
echo 'Not valid';
}
?>