Re: insert date with a calendar

From: Date: Thu, 20 Jun 2002 16:08:26 +0000
Subject: Re: insert date with a calendar
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-103158@lists.php.net to get a copy of this message
> From: "Kevin Meredith" <kevin@atom.co.za> > > I have an app that requires users to insert an 'end' date. The date is > saved in MYSQL in the date format. The problem is that the user input, > which is not always reliable, has to be in the correct format. I was > wondering if there is a way to have a simple calendar option, either on the > page on in a pop-up window, where a user can select a date which will then > have the correct format to be inserted. There is also other data being > captured on this page so this preferably needs to be done without refreshing > the page. > > Any ideas would be greatly appreciated. > I've done something like this by presenting HTML select lists for month, date, and year, then assembling the three values in the format that MySQL wants before inserting into the database. -- Lowell Allen

« previous php.general (#103158) next »