CodeIgniter Forums
Custom Form Validation Rule - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Custom Form Validation Rule (/thread-32983.html)



Custom Form Validation Rule - El Forum - 08-11-2010

[eluser]dennismonsewicz[/eluser]
Is there anyway to write your own rule so that you can check if a certain value is greater than or equal to another value?

I am wanting to check a birthday year field and am wanting to make sure that the submitted birthday year is greater than a certain age.


Custom Form Validation Rule - El Forum - 08-11-2010

[eluser]verynewtothis[/eluser]
I think you are looking for callbacks:
Callbacks - your own validation functions