excellent!
the hack works, but there's a small bug: when a new user registers without inputting his birthday, he sees:
Quote:
You have not completed the required field "". Please press the back button, complete it, and resubmit the form.
|
instead of "You have not entered your birthdate. Please go back and do so now."
also, just out of curiosity.. this hack seems to prevent a user from registering even if he puts in both the month and day of his birth, but not the year. i looked at the code, and it seems to only restrict the month and day.
Code:
if ($month == -1 or $day == -1)
so how does it protect against the year?