Jump to content

input box for time


home123

Recommended Posts

HiI wanted to know how can i make an input box so the user puts in the time in the time format without making any possible mistakes. I want to do something like when you need to put the time into windows.also to put in a date how can i make it possible to view a callender?Thank you

Link to comment
Share on other sites

I've created something like that before for a project I was working on. I used PHP and mysql. Basically I didn't use text inputs I used selects. The user selected the hour (list from 1-24 or 1-12+am-pm at the end) then minutes (increments of 15). Then the rest is like other websites you've been on. select for day, month, year...I also created a php calendar but this is pretty complex coding. You need to be able to generate every month of every year in a table format (7 columns wide and 4-5 rows). If that's the setup you want. You can always go with something a lot simpler but it wouldn't be as user friendly as a calendar.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...