note 3011 modified in checkdate by ronabop
| From: | ronabop@php.net | Date: | Fri, 29 Sep 2000 13:24:48 +0000 |
| Subject: | note 3011 modified in checkdate by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-5598@lists.php.net to get a copy of this message | ||
something I found useful for varibalizing dates to to date checks
if ($year."-".$month."-".$day <= date("Y-m-d")) {
echo("date not acceptable");
$errorflag = "yes";
}
where a form has three input text fields named accordingly.
http://www.php.net/manual/function.checkdate.php