Welcome Guest, Not a member yet? Register   Sign In
Need help validating a special field
#11

[eluser]php_princess[/eluser]
Ah, there it goes! It's working now.

Tho I did have my logic backwards in this part:
Code:
return ( $interval->y >= $minimum) ? FALSE : TRUE;

It was triggering for people who were above the age, not under. I fixed it though:
Code:
return ( $interval->y < $minimum) ? FALSE : TRUE;

^_^
#12

[eluser]CroNiX[/eluser]
or just
return ( ! $interval->y < $minimum);




Theme © iAndrew 2016 - Forum software by © MyBB