嗨即时通讯与PHP验证,即时通讯尝试使日期测试对 日期();日期,以确保日期是最新的,不会允许任何日期,现在多数民众赞成小于当前日期()PHP验证与现在()日期和插入时间
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;
}
我很遗憾听到这个消息。你有什么问题? – 2013-04-22 14:38:23
'checkdate($ month,$ day,$ year)> time()' – x4rf41 2013-04-22 14:39:57
我必须对当前的Now()日期测试$ month $ day $ year,并确保它更大或发送invaliddate – 2013-04-22 14:40:33