This would probably be the best way to do that. Note, however, that it will allow dates such as 1/1/2003 or 01/1/2003... If that can't be allowed, you will have to check the length of each number... With checkdate() it will check for things such as leapyears, etc...
<?PHP
$dob = "01/01/1984"; # DD/MM/YYYY
list($day, $month, $year) = split("/", $dob);
if ($year >= 1900 && $year <= 2003) {
if (!checkdate($month, $day, $year)) {
echo "Invalid date";
}
}
else {
echo "Invalid date";
}
?>