date validation help |
[eluser]hackersapien[/eluser]
I'm trying to implement simple date validation on a user form that I have, I don't want to extend the current validation library, instead I'd rather have a simple function that I can call. I'm using CI v1.6.3 on my app. I've looked at Date Validation? but I can't seem to get it to work in my method. Appreciate any help I can get.
[eluser]thinkigniter[/eluser]
try adding this built in php function to your script. http://php.net/checkdate
[eluser]Michael Wales[/eluser]
If you are just wanting a simple function you can call, to validate the input, read up on using your own callback functions within the Form Validation library.
[eluser]hackersapien[/eluser]
I just read up on callback functions and got it working, guess it pays to always go through the documentation before you post a question. |
Welcome Guest, Not a member yet? Register Sign In |