Array

Results 1 to 2 of 2

Thread: Array

  1. #1
    Endar Goth Guest

    Default Array

    I need to return a number of records from a database, add a check box, and pass these to a delete page.<BR><BR>My question is how can I pass an undetermined # of variables from one asp page to another.

  2. #2
    Richard L. Guest

    Default RE: Array

    Here&#039s how: dynamically write a form based on the number of fields in your recordset:<BR><BR>&#060;form action=&#039nextPage.asp&#039 method=&#039post&#039&#062;<BR>&#060;% For each fld in RS.Fields %&#062;<BR>&#060;input type=&#039hidden&#039 name=&#039&#060;% response.write fld.Name %&#062;&#039 value=&#039&#060;% response.write fld.Value %&#062;&#039&#062;<BR>&#060;% Next %&#062;<BR>&#060;/form&#062;<BR><BR>Then write these values any way you want on the next page:<BR><BR>For each fld in Request.Form<BR> response.write fld.Name & ":" & fld.Value & "<BR>"<BR>Next<BR><BR>Enjoy!<BR>Richard L.<BR>

Posting Permissions

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