验证出生日期和检查年龄 [英] Validate date of birth and and check age

查看:71
本文介绍了验证出生日期和检查年龄的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以我的形式,我正在使用下拉列表显示日,月,年。你能帮我验证日期吗?我必须验证输入的年龄大于15.还要检查闰年等。

In my form I am using drop down for showing day, month, year. Can you help me validate the date. I have to validate the entered age is greater than 15. Also check for leap year etc.

推荐答案

PHP函数 checkdate 是您要查找的内容。

The PHP function checkdate is what you're looking for.

这篇关于验证出生日期和检查年龄的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆