|
-
Mar 1st, 2001, 02:29 PM
#1
Thread Starter
Lively Member
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!
-
Mar 1st, 2001, 02:35 PM
#2
Frenzied Member
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.
oOOo--oOOo
__ /\/\onte96
oOOo--oOOo
Senior Programmer/Analyst
MCP
[email protected]
[email protected]
Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..
-
Mar 1st, 2001, 02:52 PM
#3
Thread Starter
Lively Member
Some times you can't see the forest for the trees! Thanks so much.... It worked like a charm!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|