PHP Classes

a small bug

Recommend this page to a friend!

      Date validation  >  All threads  >  a small bug  >  (Un) Subscribe thread alerts  
Subject:a small bug
Summary:a small bug
Messages:2
Author:juanmarch
Date:2006-11-10 11:29:01
Update:2008-11-06 13:31:19
 

  1. a small bug   Reply   Report abuse  
Picture of juanmarch juanmarch - 2006-11-10 11:29:01
with this function 32/12/2002 is a correct data. only add this in the errors:

else if( ($m < 1) || ($d > 31) || ($d < 1) || ($m > 12) || ($y < 1900))


and all ok

  2. Re: a small bug   Reply   Report abuse  
Picture of ladjack ladjack - 2008-11-06 13:31:21 - In reply to message 1 from juanmarch
$y < 1900

just, why exact value for year ?