VBDever
Mar 1st, 2001, 01:29 PM
The code for the submit is below. I also have 2 combo boxes, that I need to get the ID values from not the visible values. The combo box creation looks like this....
It populates but doesn't get the value I need to the submit.
Function GetOwnerEquipment()
Dim rsOwnerEquip
Set rsOwnerEquip = oFE.GetEquipment()%>
Owner Equipment ID's <BR>
<SELECT NAME="ListBoxOE" SIZE=1>
<% Do While Not rsOwnerEquip.EOF %>
<OPTION VALUE="<%= rsOwnerEquip(0) %>"> <%= rsOwnerEquip(2) %></option>
<% rsOwnerEquip.MoveNext
Loop
rsOwnerEquip.Close %>
</SELECT>
<BR><BR>
<%
End Function
Here is the submission Stuff!
<Form Name = "SubmitDownTime" Action = "downtime.asp">
Hours Down <BR><INPUT type="text" id=HoursDown name=HoursDown value = "<%=sHoursDown%>"><BR><BR>
Downtime Date<BR><INPUT type="text" id=DownTimeDate name=DownTimeDate value = "<%=sDownTimeDate%>"><BR><BR>
Remarks
<TEXTAREA rows=2 cols=20 id=Remarks name=Remarks><%=sRemarks%></TEXTAREA><BR><BR>
<INPUT type="submit" value="Insert Downtime" id=InsertDowntime name=InsertDowntime>
<!--*Begin*-->
<!--* End *-->
</Form>
Please help!
It populates but doesn't get the value I need to the submit.
Function GetOwnerEquipment()
Dim rsOwnerEquip
Set rsOwnerEquip = oFE.GetEquipment()%>
Owner Equipment ID's <BR>
<SELECT NAME="ListBoxOE" SIZE=1>
<% Do While Not rsOwnerEquip.EOF %>
<OPTION VALUE="<%= rsOwnerEquip(0) %>"> <%= rsOwnerEquip(2) %></option>
<% rsOwnerEquip.MoveNext
Loop
rsOwnerEquip.Close %>
</SELECT>
<BR><BR>
<%
End Function
Here is the submission Stuff!
<Form Name = "SubmitDownTime" Action = "downtime.asp">
Hours Down <BR><INPUT type="text" id=HoursDown name=HoursDown value = "<%=sHoursDown%>"><BR><BR>
Downtime Date<BR><INPUT type="text" id=DownTimeDate name=DownTimeDate value = "<%=sDownTimeDate%>"><BR><BR>
Remarks
<TEXTAREA rows=2 cols=20 id=Remarks name=Remarks><%=sRemarks%></TEXTAREA><BR><BR>
<INPUT type="submit" value="Insert Downtime" id=InsertDowntime name=InsertDowntime>
<!--*Begin*-->
<!--* End *-->
</Form>
Please help!