PHP Form | Time Input
Moderator: General Moderators
-
FoolishThinker
- Forum Newbie
- Posts: 2
- Joined: Tue Jun 30, 2009 7:33 pm
- Location: Manila, Philippines
- Contact:
PHP Form | Time Input
Hi. I am trying to create a form that would allow users to enter time (e.g. 3:36 PM) on a text field. I need the users to enter it in a 12 hour format and indicate whether its AM or PM. Can someone please teach me how to do this or tell me a good way to code this in php? I'd really appreciate it. 
Re: PHP Form | Time Input
I would recommend using 3 separate select elements so that you get reliable data.FoolishThinker wrote:Hi. I am trying to create a form that would allow users to enter time (e.g. 3:36 PM) on a text field. I need the users to enter it in a 12 hour format and indicate whether its AM or PM. Can someone please teach me how to do this or tell me a good way to code this in php? I'd really appreciate it.
Code: Select all
+-----+-+ +------+-+ +------+-+
| 1 |V| : | 00 |V| | AM |V|
+-----+-+ +------+-+ +------+-+-
FoolishThinker
- Forum Newbie
- Posts: 2
- Joined: Tue Jun 30, 2009 7:33 pm
- Location: Manila, Philippines
- Contact:
Re: PHP Form | Time Input
thanks a lot for the idea! 