By joetomgo on
I have a custom field named "birthyear" and I want to ensure that people under a certain age (13), can't register. Any help is greatly appreciated.
Tim
I have a custom field named "birthyear" and I want to ensure that people under a certain age (13), can't register. Any help is greatly appreciated.
Tim
Comments
Validation function
You want to create a custom validation function as well. Look up the documentation on how to create custom validation, and how to override the current validation for the user module form.
Dave
The quick solution
The quick and dirty solution is to just use JavaScript validation. If age <13 stop the form and display a dialogue ;)
But obviously wouldn't work with JS disabled browsers.
------------------------------
BioALIEN
Buy/Sell/Trade with other webmasters: WebMasterTrader.com
Is there
a module for that?
validateage module
I just submitted a module validateage to do age validation, check it out to see if it meets your needs.
gwen
Profile module?
Gwen,
Wouldn't it be better if your module was contributed as a patch towards the profile.module and included in D6?
------------------------------
BioALIEN
Buy/Sell/Trade with other webmasters: WebMasterTrader.com