Results 1 to 3 of 3

Thread: Here is what I am doing

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2000
    Posts
    71

    Unhappy

    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!

  2. #2
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    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..

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Oct 2000
    Posts
    71

    Talking

    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
  •  



Click Here to Expand Forum to Full Width