Welcome Guest, Not a member yet? Register   Sign In
date validation help
#1

[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.
#2

[eluser]thinkigniter[/eluser]
try adding this built in php function to your script.

http://php.net/checkdate
#3

[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.
#4

[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.




Theme © iAndrew 2016 - Forum software by © MyBB