Código PHP:
<select name="start_time">
<?php $index_cnt = 0;
$start_time_index = 0;
reset ($valid_booking_times);
foreach ($valid_booking_times as $time) {
if ($time != $valid_booking_times[count($valid_booking_times)-1]) {
?>
<option value="<?php echo $time?>" <?php echo ($_REQUEST['start_time'] == $time) ? ' selected="selected"' : ''?>><?php echo (DEFINE_AM_PM == true) ? format_time_to_ampm($time) : $time?></option>
<?php }
if ($_REQUEST['start_time'] == $time) { $start_time_index = $index_cnt; }
$index_cnt++;
} ?>
</select>
Gracias por anticipado