eval a querysting loop

Results 1 to 2 of 2

Thread: eval a querysting loop

  1. #1
    Join Date
    Dec 1969

    Default eval a querysting loop

    I have a number of hidden fields which are created dynamically.<BR><BR>So for example I could have : -<BR><BR>txtlan1 <BR>txtlan2<BR>txtlan3<BR>txtlan4<BR><BR>When I submit the page I don&#039;t know how many I could have so I can&#039;t do <BR><BR>request("txtlan1")<BR>request("txtlan2")<B R>request("txtlan3")<BR>request("txtlan4")<BR><BR> So how do I loop through the submitted data? Can I do something like this or an equivalent<BR><BR>request("txtlan" & num) <BR><BR>Your thoughts please.

  2. #2
    Join Date
    Dec 1969

    Default RE: eval a querysting loop

    when you dynamically create them on forms page, you already have a counter for the loop to build them.... right?<BR><BR>If so, have a hidden field inside form to store the last number used from that loop...<BR><BR>then<BR><BR>For i = 1 to Request.Form("MyCounter")<BR>request("txtlan" & num)<BR>Next

Posting Permissions

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