TinyPortal

General => Chit chat => Topic started by: disisme on February 07, 2006, 10:18:20 PM

Title: making profile fields 'required'
Post by: disisme on February 07, 2006, 10:18:20 PM
I'm running SMF 1.0.6, and I'd like to make certain fields in the profile mandatory (like date of birth so we can detect minors).  Anyone know how to do this?
Title: Re: making profile fields 'required'
Post by: disisme on February 08, 2006, 12:53:20 AM
oko...profile.php will allow me to make it mandatory.  The only problem I have is making sure they have entered a valid date.  The profile 'zeros' out the fields in birthdate irrespective.  I think I need to use the checkdate() function to verify a valid date, but I cant seem to get the syntax right (php noob here).

Can anyone tell me how to force an error if birthdate ($_POST['birthdate'] is the variable) is set to 0000-00-00?
Title: Re: making profile fields 'required'
Post by: disisme on February 08, 2006, 01:52:59 AM
Never mind... I figured it out :)