嗨,我目前坚持使用 php 验证,我正在尝试针对 date() 进行日期测试;日期以确保日期是最新的,并且不允许任何小于当前日期的日期()
public function checkDateField($month, $day, $year)
{
if (!is_numeric($month) || !is_numeric($day) || !is_numeric($year) || !checkdate($month, $day, $year)) {
$msg = '*Invalid date';
// then some where here test the value
of $month $day $year >= date...
something like that?
///
}
return $msg;
}