Handling MySQL data type 'time' in form

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
kabuki1985
Forum Commoner
Posts: 32
Joined: Thu Jun 15, 2006 10:19 pm

Handling MySQL data type 'time' in form

Post by kabuki1985 »

What is the best way to get input for 'time' ? I'm currently stuck with the input type text to get the time. It is not so user-friendly that way. Any ideas?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Date pickers are my favorite, with drop downs next, then standard text box(es). We've talked about each before in various threads.

strtotime() may be of interest.
User avatar
harrisonad
Forum Contributor
Posts: 288
Joined: Fri Oct 15, 2004 4:58 am
Location: Philippines
Contact:

Post by harrisonad »

I usually make 3 selectboxes for hour, for minutes, and for am-pm selection
be careful though in retrieving the value
Post Reply