hi, am recieving an undefined offset error for $month and $year line after the explode function. This happens only when the form is blank and submitted.
$dob="dd/mm/yyyy";
$dob= $_POST['dob'];
function icPrintINPUTbirth($label,$name,$maxlth,$size,$value)
{
print '<label>'.$label.':<input type="text" name="'.$name.'"
maxlength="'.$maxlth.'" size="'.$size.'" value="'.$value.'"/></label>'.'';
}
icPrintINPUTbirth("Date of Birth (dd/mm/yyyy) ","dob",10,10,$dob);
$arr=explode("/","$dob");
$day=$arr[0];
$month=$arr[1];
$year=$arr[2];
if(@checkdate($month, $day, $year)){
print '';
}else{
$errs[]= "The date entered is not valid, please try again </br>";
}
CHeers