validation date of birth composed of 3 dropdowns: month, day, year |
I have form that contain: date of birth
date of birth is composed of 3 dropdowns: month, day, year I want validate the birthday to check if the user has a least 18 year old, and its valid date via custom rule like below, but it does not work, Maybe I'm wrong, How to do something like that? Thanks Code: $rules = [
I found solution by creating the custom rule below, and it seems working great, if anyone interested
PHP Code: <?php
Thank you for posting your solution.
But what if my 102 years old grandpa wants to register on your website?
CodeIgniter 4 tutorials (EN/FR) - https://includebeer.com
/*** NO support in private message - Use the forum! ***/ |
Welcome Guest, Not a member yet? Register Sign In |