RE: [PHP] Date Validation, Kinda'
| From: | Jay Blanchard | Date: | Thu, 21 Aug 2003 20:33:02 +0000 |
| Subject: | RE: [PHP] Date Validation, Kinda' | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-160350@lists.php.net to get a copy of this message | ||
[snip]
I'm thinking this:
1. you get the date from the user
2. validate it using checkdate()
3. get the current date
4. compare the two dates to see if the users date is later than todays
date
5. return true or return false
Sound good?
[/snip]
Sounds bueno! I am just tired, had checkdate() in hand...Thanks!