Hello i want a simple calcualation which adds 2 textbox times depending on what is chosen from the two drop down lists below, for example a lesson costs £21 and if the user chooses quotestarttime 01:00 to 02:00 it would cost 21 and if the user selects 01:00 till 03:00 it should display £42 but i dnt want it to appear in a textbox which shows the total cost.

<td><select name="TimeOfDay" class="quoteStarttime">
<option selected="selected">00:00</option>
<option>01:00</option>
                             
                        
<option>02:00</option>


<option>23:00</option></select>
<span class="radioText">and</span>
<select name="TimeOfDayEnd" class="quoteStarttime">
<option>01:00</option>
                             
                        
<option>02:00:</option>
                             
                        
<option>03:00</option>
                             
                        
<option>04:00</option>

Recommended Answers

All 2 Replies

Have you tried subtracting the value of one checkbox from another?

nope i aint got any idea of how to do that, im new to php

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.