Hello,
I have two drop down lists with times in it formatted this way:
HH:MM
Now I want people to tell me at what times they will be available.
So I made one dropdownlist with the start_time and one with the end_time.
So far so good but now I have people telling me they will be available from 18:00 in the evening till 10:00 in the morning instead of 10:00 in the morning till 18:00 in the evening.
In other words the end time should not be able to be earlyer then the start time.
How can I do this?
if $ddlBeginTimeSelectedValue < $ddlEndTimeSelectedValue
{
echo "The start time should be earlyer then the end time";
}
else
{
//my statement to put the times into my database
}
This is not quite enough.
I would GREATLY appreciate any help I can get!
thank you...