Re: [PHP] insert date with a calendar

2002-06-21 Thread Erik Price
On Thursday, June 20, 2002, at 09:16 PM, Justin French wrote: When users have to enter dates on my forms, I always provide them with three drop-down menus, for day (1-31), Month (1-12) and year (usually current year, the next and the next, depending on the application). Then I have

Re: [PHP] insert date with a calendar

2002-06-21 Thread Erik Price
On Friday, June 21, 2002, at 09:27 AM, Erik Price wrote: * @param string $defaultMonth one- or two-digit number representing a default month (if empty, defaults to current month + day multiplier) * @param string $defaultDay one- or two-digit number representing a default day of the

RE: [PHP] insert date with a calendar

2002-06-20 Thread David Freeman
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

Re: [PHP] insert date with a calendar

2002-06-20 Thread Justin French
When users have to enter dates on my forms, I always provide them with three drop-down menus, for day (1-31), Month (1-12) and year (usually current year, the next and the next, depending on the application). Then I have three values on the next page ($_POST['day'], $_POST['month'],