I'm creating reservation system and I'm trying to sum up time string from form values. First two form fields are starting point with hour (9 to 18) and minutes (00 and 30) user chooses e.g 9 and 30.
$time = "".$_POST['h'].":".$_POST['min'].":00";
Second form field is how long item will be reserved (30min to 3h).
<select name="reserved">
<option value="0:30">30 min.</option>
<option value="1:00">1:00 h.</option>
<option value="1:30">1:30 h.</option>
<option value="2:00">2 h.</option>
<option value="2:30">2:30 h.</option>
<option value="3:00">3 h.</option>
</select>
So I need to sum up $time and "reserved" dropdown values to get proper summed time 9:30 + 0:30 = 10:00. Hope you understand, thanks for advices. Tried to convert to time stamp and sum it up, but no luck.