-
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!
-
The problem is that your SELECT tags are not inside of the FORM tags. If you must use a Function for this, make sure that you call the function from within the FORM tags otherwise it is not part of the FORM when it is submitted.
-
Some times you can't see the forest for the trees! Thanks so much.... It worked like a charm!