Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2004
    Posts
    124

    Unanswered: writing values in textbox

    How can I add the array values into a form textbox in the script I'm working on? I want the array values to be in a text field so they can be edited. I want to use a stored procedure to update the array values.

    <%
    Response.Write "<table width=""700"" border=""1"">"
    For x = 0 To TEST_MAX
    Response.Write "<tr>"
    Response.Write "<td>"
    Response.Write TestList(0,x)
    Response.Write "</td>"
    Response.Write "<td>"
    Response.Write TestList(1,x)
    Response.Write "</td>"
    Response.Write "<td>"
    Response.Write TestList(2,x)
    Response.Write "</td>"
    Response.Write "<td>"
    Response.Write TestList(3,x)
    Response.Write "</td>"
    Response.Write "</tr>"
    Next
    Response.Write "</table>"
    %>
    </table>

    Thanks in advance for any help.
    -Dman100-

  2. #2
    Join Date
    Nov 2004
    Posts
    5
    response.write "<input type=text name='field_' & x & " value=' & TestList(1,x) & "'>"

    Deadbeef
    (well that's one sample of what to do with variables in combination with text fields)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •