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

[eluser]Frank Rocco[/eluser]

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



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

[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  

Users browsing this thread:
1 Guest(s)

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