I have a form page where I want only those who are 16 of age or older to fill out. Currently I have the following:
if ($arrApp[$FIELDNAMES['NAME_DOB']] <= '1991-12-31' ) {
array_push ($arrErrors, $ERR_DOB);
<tr><td><b><font color="#990000">Date of Birth:</b></font><br />
<span>(Use format: MM/DD/YYYY)</span></td>
<td align="left">
<input type="text" name="<? echo $FIELDNAMES['NAME_DOB']; ?>" size="20" maxlength="16" value="<? echo $arrApp[$FIELDNAMES['NAME_DOB']]; ?>">
</td></tr>
However, this produces an error no matter what date I put in. Am a newbie and not sure what I'm missing. Any help/pointer would be greatly appreciated.