In HTML, i'm entering a date (mm/dd/yyyy) using the new HTML 5 date picker:
<input name="date" type="date">
I want to validate if the date entered is older than today's date
$this_date = $_POST['date'];
if ($this_date is older the today's date) {
echo 'The date entered must be greater than today's date';
} else {
echo 'The date is valid!';
}
How do I go about?
Thanks