Getting a users Date of birth? php mysql

Ufoo

New Member
Hey guys I'm I need get a user's date of birth in a form...How do you think I should go about doing it? I would like to just keep it simple in a text field but I also need to validate it.After that I need to store it in my database, the database has a field which is a timestamp is that correct or should I use something different? (MYSQL) I have it working at the moment but it also shows the time as 00:00:00 in the database.I'm using this\[code\] $DOB = strtotime($DOB);\[/code\]How should I do it? Is there a better way? This requires them to enter dob as YYYY/MM/DD is there a way I can do it better...After this I also need to make sure they are over 18 years old. So how should I go about doing that?Thanks in advanced for the help or reading my question :)
 
Top