> user input, which is not always reliable, has to be in the correct format.
What I've done for things like this is to have three separate select form elements. The first for selecting a day of the month. The second for selecting a month and the third for selecting a year. I usually set the year options based on the requirements - as in, if it's a mostly current event then I set the valid options for year to be current year minus two through to current year plus five. CYA, Dave -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php