Hi,
I created a page for people to reserve a equipment. There is a form field that contains the following data:
<tr>
<td>Time:</td>
<td><select name="time">
<option>Morning</option>
<option>Afternoon</option>
<option>Evening</option>
<option>Afternoon/Evening</option>
<option>Work Day</option>
<option>All Day</option>
</select>
</td>
</tr>
I am having trouble with the following. If a person reserves the equipment for the morning for a particular day, then another person can book it for the afternoon, evening, after/evening but nobody should be allowed to book it for the Work Day and All Day because this is an error. Vice versa too, if a person books it for the work day then another person should not be allowed to book it for the morning, afternoon, etc.
I am so stuck because any solution I come up with is the wrong solution. Please help. Thank you.
|