SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    May 2013
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Pulling dynamic form data

    I have a form with 3 input fields that can add or delete rows in the form. My question is how to pull data to use in string array?

    Table clients
    Name Address City/State
    this table has 3 rows by default, but you can add rows as needed

    Table payable
    Name Address City/State
    this table has 3 rows by default, but you can add rows as needed

    Using request.form how can I pull data into a string array like table clients

    <table id="clients" border="0" cellspacing="5" cellpadding="0">
    <thead>
    <tr>
    <td width="5px;">&nbsp;</td>
    <td><span>Name</span></td>

    <td><span>ADDRESS</span></td>

    <td><span>CITY/STATE</span></td>
    <td class="action" style="width:30px"> <input type="button" value="Add Row" onclick="rowAtBottom('tblclients','clients','3');" class="submitbtn"></td>
    <td class="action" style="width:30px">&nbsp; </td>
    </tr>
    </thead>
    <tbody></tbody>
    </table>

    <script language='javascript'>fillInResumeRows('tblclients','clients','3');</script>


    <table id="payable" border="0" cellspacing="5" cellpadding="0">
    <thead>
    <tr>
    <td width="5px;">&nbsp;</td>
    <td><span>NAME</span></td>

    <td><span>ADDRESS</span></td>

    <td><span>CITY/STATE</span></td>
    <td class="action" style="width:30px"> <input type="button" value="Add Row" onclick="rowAtBottom('tblpayable','payable','3');" class="submitbtn"></td>
    <td class="action" style="width:30px">&nbsp; </td>
    </tr>
    </thead>
    <tbody></tbody>
    </table>

    <script language='javascript'>fillInResumeRows('tblpayable','payable','3');</script>

    Thanks in Advance

  2. #2
    SitePoint Enthusiast
    Join Date
    Aug 2011
    Location
    OH, USA
    Posts
    72
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm not sure why you need array (if just print data on screen you can do that directly from recordset), but id you have recordset rsA
    arrRecordArray = rsA.GetRows will creater arrRecordArray with all data from recordset


Bookmarks

Posting Permissions

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