Basically once a user registers i want it to make sure that they are a required age to register, however im unsure how this works, im wanting it to return an error if they are too young.
Parts of my scripts are below
Heres the part of my form:
The var which inserts into the database(this works and inserts):
Im wanting the error to return if the person is under 13 years old
Any help into how i would do this is appreciated
Thanks
Parts of my scripts are below
Heres the part of my form:
HTML:
<b>Birthdate:</b><br />
<select name="day" id="day">
<?php echo $dayOptions; ?> </select>
<select name="month" id="month" onChange="updateDays();">
<?php echo $monthOptions; ?> </select>
<select name="year" id="year" onChange="updateDays();">
<?php echo $yearOptions; ?> </select> <br /><br />
The var which inserts into the database(this works and inserts):
PHP:
$dob = "{$_POST['year']}-{$_POST['month']}-{$_POST['day']}";
Im wanting the error to return if the person is under 13 years old
Any help into how i would do this is appreciated
Thanks