Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FOR EACH item IN Request.Form 2

Status
Not open for further replies.

fischadler

Programmer
May 31, 2002
258
MT
Would I be safe in assuming that the code below returns the same information in the same order no matter how many times I run it in the same page?
Code:
FOR EACH item IN Request.Form
  Response.Write item & "<br>"
NEXT
Is there some way to specifically set the order in which this code scans through the inputs?

Thanks!

-Fischadler
 
Thanks DNG - that was interesting.

So if you really want them in a specific order, you could name them "elementxx" where xx is a sequential number. Or, if you want them alphabetically, get just the keys, put them into an array, sort them, and then use them to access the elements.

Tracy Dryden

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard. [dragon]
 
How do you sort an array? Is it that easy?

-Fischadler
 
Apparently I cannot award you another star, but you have my gratitude.

-Fischadler
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top