• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
help - how to validate a date field?

#1
[eluser]Frank Rocco[/eluser]
Hello,

What is the best way to make sure a date entered is valid for mm/dd/yyyy?
I am using form_input

Thanks

Frank

#2
[eluser]Frank Rocco[/eluser]
Still not working.
Does anyone have an example of date validation?

#3
[eluser]Devon Lambert[/eluser]
Hey Frank,

You could try splitting out the date using explode().

Then once it's split, do a validation check on each array item.

Hope it helps.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.