are you over 18..?


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. $over_18 = date("Y-m-d", strtotime("- 18 years")) < $dob ? false : true;

URL: http://bettesmidler.com/code/2009-07-16.htm

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.