Compare 2 dates from Form with PHP
Posted on 2012-03-22
I do not have much experience coding and am trying to compare 2 dates as part of a form validation.
Basically, user inputs a "depart" date and a "return" date to a form. The dates need to be compared, and if the return date is earlier than the depart date it should throw an error "Return date must be later than depart date" and stop the form from being sent with wrong dates.
Any help is appreciated!!