Ive used the codeto collect the date that the user has typed in, but how can i make sure the user types in a correct date?PHP Code:
$day = $_GET['day'];
$month = $_GET['month'];
$year = $_GET['year'];
$date = date("m-d-Y", mktime(0, 0, 0, $day, $month, $year));
So the cant have a month as like number "22", or a day as "56th"?