Hi guys, i'm trying to create an online timesheet for our employees. on the first page i have basically 2 dropdown list boxes, along with name and day etc... The Listbox on the left has the values of 12:00 AM to 11:00 AM the one on the right has the values of 12:00 PM to 11:00 PM. So when the user submits that, he goes to the second page.. and on that page i have this code
<% Dim TotalTime, Morning, MorningTime, Evening, EveningTime
Morning = Left(Request.Form("Morning"
, 1)
Evening = Left(Request.Form("Evening"
, 1)
MorningTime = CInt(Morning)
EveningTime = CInt(Evening)
TotalTime = MorningTime + EveningTime
Response.Write TotalTime
%>
So basically right now what it's doing is adding the numbers together, for instance 9 to 5 gives me 14 hours instead of 8. what do i need to do to make this work? thanks in advance.
<% Dim TotalTime, Morning, MorningTime, Evening, EveningTime
Morning = Left(Request.Form("Morning"
Evening = Left(Request.Form("Evening"
MorningTime = CInt(Morning)
EveningTime = CInt(Evening)
TotalTime = MorningTime + EveningTime
Response.Write TotalTime
%>
So basically right now what it's doing is adding the numbers together, for instance 9 to 5 gives me 14 hours instead of 8. what do i need to do to make this work? thanks in advance.