How can I set date of birth validations for a registration form?
I tried comparing the dob entered with the current date but it didn't work.
if (date("d/m/y") > $dob){
echo "impossible";
}
or better how can i make it so that the user doesn't have the option to pick a date that hasn't come yet.
Also how can i compare the dates to not allow someone under 12 to join my website?