On a form, i have an input box :
Code: Select all
<form>
<input name="birthdate" value="">
</form>
I want the users to give into that input box their date of birth in such a way : DAY/MONTH/YEAR dd/mm/yy
and so am expecting from every user to write something like this : 20/12/1960 .
Ok till here
Now i want to validate the day of birth in this form of dd/mm/yy !
But how to ?
I store the input into one variable $thedate.. par example,
Code: Select all
$thedate = $_POST['birthdate'];
Thanks