Description:
TimePicker, is a small php function that creates a 24 hour drop down box that lists times from 00:00 to 23:45 with 15 minutes increments for example:
00:00
00:15
00:30
00:45
Demo:
How to use:
Simple insert the following code at the top of the page you wish to use this script on: <? include "TimePicker.php"; ?>
Then place the following code where you want thTimePicker to appear: <? echo TimePicker($SelectedTime,$SelectionName); ?>
The first variable ($SelectedTime) is the preselected time, it will be the time that is Selected as the default time in the Time Picker.
The second Variable ($SelectionName) is the name of the dropdown box, so you can get the Time Pickers value from a submitted form.