I'm having users enter dates in MM-DD-YYYY format. is there a way to check if what they have entered is invalid (like if they enter 1-15-2008 instead of 01-15-2008) ?
Why not use something like http://www.dynarch.com/projects/calendar/ to make it easier for the users? Along with being easier, the widget will format the input however you like. You can even have it displayed to the user in one format and post it to your form in another format.
Of course there should also be an alternative method for those with JS turned off, but my experience with users entering dates by hand has been way too painful not to use a JS calendar widget.
Just my two cents, Brady -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php