Hi
I have a form where a user selects a date.
How do I in PHP ensure that this date is not in the past?
Thanks in advance
ensuring a date is not in the past
Moderator: General Moderators
- Ollie Saunders
- DevNet Master
- Posts: 3179
- Joined: Tue May 24, 2005 6:01 pm
- Location: UK
use strtotime() and time() and the greater than operator (>)