Contatanating varibles names

Results 1 to 2 of 2

Thread: Contatanating varibles names

  1. #1
    Join Date
    Dec 1969

    Default Contatanating varibles names

    I have 10 variables quantity1-quantity10 associated with text box forms. On the processing side i would like to be able to be able to do something like quantity+num(num being the loop counter) but that is not working right. It prints out 1-10 instead of grabbing the data in that field if there is one.<BR><BR>Is this possible or perhaps a better way to do this sorta thing?<BR><BR>Matt

  2. #2
    Join Date
    Dec 1969

    Default RE: Contatanating varibles names

    For q = 1 to 10<BR> fldName = "quantity" & q<BR> value = Request.Form(fldName)<BR>Next<BR><BR>should work. Hope this helps...

Posting Permissions

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