Get started with PHP-Fusion

Start a New Thread

Users Participated

  • Craig
    Post made: 1
  • JoiNNN
    Post made: 1

  1. PHP-Fusion Support Forums
  2. Development & Design
  3. Roadmap

Birthdate User Field allows invalid dates

[Development Team Access] All Roadmap items end up here for discussions.

1 Reply 2,882 Views Last Updated on 4 years ago


Veteran Member


Posted 4 years ago

The code inside this userfield doesn't do a proper check and allows future dates to be inserted as birth date (have a look at my date of birth on this site).
Just add to the code
Code Gist: Download source  

&& $_POST['user_year'] < date("Y");

Go to roadmap item #1503

Posts: 859

Joined: 05/02/2011




Posted 4 years ago

Yeah also it lets you set just one or 2 or all 3 like you can set only month or only year or only day. It does not check all are filled. It's been like that for ever or at least since the field was recoded lol. It was reported previously but since the roadmap has lost a lot of entries I guess that is another one forgotten about.

Posts: 4531

Joined: 27/09/2005

Jump to Forum:
7 users are online
0 member and 7 guests