I just realized how unhelpful my reply was to the original post.
Like Daniel said,
time() is server-side only. It all depends on the server's time-keeping and the timezone in which the server is located.
Converting a birthday in MM DD YYYY is pretty simple. Let's say the user, through drop-down menus, have entered the following data:
Month: 11
Day: 17
Year: 1992
Well, then add the strings together and convert it using
strtotime(). It will convert it to a UNIX timestamp. Then you can just do timestamp / (60*60*24*365). Note that it doesn't count leap year days, so it will probably be a few days off unless the user is 4 years old. That requires a separate algorithm.
For example:
PHP Code:
<?php
$month = 11;
$day = 17;
$year = 1992;
$time = strtotime("$month $day $year");
$age = $time / (60*60*24*365);
echo "You are $age years old!";
?>
Would return "You are 18 years old!".