1 tip i would replace the whole hard coded time code with this
$r = range(1, 24);
$selected = is_null($selected) ? date('h') : $selected;
$select = "<select name=deph id=dephour>\n";
foreach ($r as $hour)
{
$select .= "<option value=\"$hour\"";
$select .= ($hour==$selected) ? ' selected="selected"' : '';
$select .= ">$hour</option>\n";
}
$select .= '</select>';
echo $select;
echo":";
$rminutes = range(1, 60);
$selected = is_null($selected) ? date('h') : $selected;
$selectminutes = "<select name=depm id=dephour>\n";
foreach ($rminutes as $minutes)
{
$selectminutes .= "<option value=\"$minutes\"";
$selectminutes .= ($hour==$selected) ? ' selected="selected"' : '';
$selectminutes .= ">$minutes</option>\n";
}
$selectminutes .= '</select>';
echo $selectminutes;
also you can get a dynamic fleet from the db if you want as i saw that you have it hard coded