Sriharsha's Tech Blog
Wednesday, July 14, 2010
php age validation
here it is -
$then = strtotime("$birth_date_year/$birth_date_month/$birth_date_day");
$min = strtotime('+18 years', $then);
if(time() < $min) {
die('Not 18'); }
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment