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'); }
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)